Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Re: rescaling variables


From   <suryadipta.roy@lawrence.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Re: rescaling variables
Date   Tue, 08 Aug 2006 08:49:06 -0500

Dear Kit,

Thanks so very much! Initially I thought to replace the missing values by zero as well, but then confused myself by thinking that a zero value (the smallest value for the x-variable) should translate close to -1.96 and beyond for the z- variable. Thanks again!!!

Suryadipta.

On Tue, 8 Aug 2006 07:07:54 -0400
Kit Baum <baum@bc.edu> wrote:

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/
Suryadipta Roy, Ph.D.
Visiting Assistant Professor,
Department of Economics,
Lawrence University,
115 South Drew Street,
Appleton, WI-54911.
Phone: 920-832-7343.
*
*   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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index