-----Original Message-----
From: Chevalier,A [mailto:[email protected]] On
Behalf Of Chevalier,A
Sent: Friday, July 19, 2002 12:58 PM
To: [email protected]
Subject: RE: standardizing on [0,1]
Thomas,
the following should do the trick,
su var
gen nvar=(var-r(mean))/r(sd)
>>>>>>>>>>
I note that this will generate a standardized variable (mean 0, sd=1),
not a variable rescaled to run from zero to one.
Nick Winter
*
* 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/