Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: easy question:standardizing variables


From   "Scott Merryman" <smerryman@kc.rr.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: easy question:standardizing variables
Date   Sun, 29 Dec 2002 20:27:42 -0600

----- Original Message -----
From: "Sheela Athreya" <sathreya@artsci.wustl.edu>
To: <statalist@hsphsun2.harvard.edu>
Sent: Sunday, December 29, 2002 7:48 PM
Subject: st: easy question:standardizing variables


> Statlisters,
>
> I know this is a really basic question, but I really can't figure something
> out:
>
> I want to standardize the variables in my dataset (there are 36) without
> typing "egen zvar1=std(var1)" 36 times.
>
> Is there a quicker way to get Stata to standardize all variables in a dataset
> at once?
>
> I searched through some past archives before filling your inboxes with what
> feels like a way-too-simple question but didn't find anything. Any advice?
>
> Many thanks, and Happy New Year.
>
>
zval var1-var36

findit standardize brings up zval
"zval centers and scales variables to have zero sample mean and unit sample
variance."

Scott



*
*   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