Statalist The Stata Listserver

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

st: Re: rescaling variables

From   Kit Baum <>
Subject   st: Re: rescaling variables
Date   Tue, 8 Aug 2006 07:07:54 -0400

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
An Introduction to Modern Econometrics Using Stata:

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
*   For searches and help try:

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