If it is a continue variable, you can use -xtreg-;
xtreg y , i(groupvar)
will report the within group and between group variances.
hth,
Jeph
Eda Bozkurt wrote:
Hi,
I would like to do a variance decomposition. Particularly I want to
express total variation as a sum of between-group and within-group
variation. I was wondering if there are any stata modules to do that.
Thanks,
Eda
*
* 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/
*
* 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/