Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: loop for z-score
From
Almazea Fatima <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: loop for z-score
Date
Sat, 28 Dec 2013 17:15:20 +0000
Hi
I have a variable "quantity", I want to standardize(z score 3) it by "region" and "season"
I used following for this purpose:
egen z=std(quantity)
Problem is it do not have "by" option, so I want to do it by loop..
Can anybody help me to create loop for it???????
Thank you in anticipation.
Regards
Almazea
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/