[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Create a variable containing the means of subgroups
Hello,
I would like to create a variable that would contain the means of
subgroups of my sample :
mean yhat, over(demo1)
This command produces a table of means of yhat for the 6 subgroups of
"demo1". I would like to create a variable that would contain these 6
values.
Thank you for your help.
Claude
*
* 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/