[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Mean
----- Messaggio inoltrato da [email protected] -----
Data: Fri, 23 Jan 2009 17:27:42 +0100
Da: [email protected]
Rispondi-A: Oggetto: st: Mean
A: [email protected]
Hello,
I have to create a variable that compute the mean of varname (y) for a
particular area (area=1)and conditioned to an other variable (x, that
assumes value equals to 1,2,3,4,6),so I would calculate the mean of
y|x=1 in area=1, the mean of y|x=2 in area=1, and so on. I typed
egen mean=mean(y) if area==1, by (x)
but I have to introduce aweight to this computation, how can I do?
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/