Statalist


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

st: Create a variable containing the means of subgroups


From   Claude Francoeur <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Create a variable containing the means of subgroups
Date   Sat, 03 Jan 2009 14:11:35 -0500

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index