EconPapers    
Economics at your fingertips  
 

CREPLACE: Stata module to exchange values cyclically between variables

Roger Newson ()

Statistical Software Components from Boston College Department of Economics

Abstract: creplace is an extended version of replace, which exchanges values cyclically between variables in a list of two or more variables. By default, the values in each variable are replaced by values from the next variable in the list, or by values from the first variable, in the case of the last variable. Optionally, the values in each variable are replaced by values from the previous variable in the list, or by values from the last variable, in the case of the first variable. If there are only two variables in the list, then their values will simply be exchanged. Variables in the list must be all numeric or all string. After exchanging the values, creplace will compress these variables to the smallest storage type possible without loss of information.

Language: Stata
Requires: Stata version 11.0
Keywords: replace; values; variables (search for similar items in EconPapers)
Date: 2009-09-04, Revised 2010-12-21
Note: This module should be installed from within Stata by typing "ssc install creplace". Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations: Track citations by RSS feed

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/c/creplace.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/creplace.sthlp help file (text/plain)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s457073

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2019-05-21
Handle: RePEc:boc:bocode:s457073