[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Re: rescaling variables
ssc install center
bys country: center variable, gen(newvariable) standardize
replace newvariable=0 if newvariable==.
If there is no variance for a particular country, the deviations from
means are all zero, so
a standardized value of zero is appropriate.
Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html
On Aug 8, 2006, at 2:33 AM, Suryadipta t wrote:
Can anyone point me towards the correct command for direct
conversion of numbers into their standard normals thereby
circumventing the problem of dividing by zeros? Thanks as
usual!
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/