Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: loop for z-score

From   Almazea Fatima <>
To   "" <>
Subject   st: loop for z-score
Date   Sat, 28 Dec 2013 17:15:20 +0000

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.

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index