Tl;dr: Where are the "var(_cons)" and "var(Residual)" stored after a mixed estimation?
In my current analysis, I'm assessing some level 1 (individuals) and level 2 (countries) variables impact on a DV. In order to estimate the amount of variance that can be attributed to the country and individual level, I first run a "bare bones" model.
Then I can calculate the variance attributed to the 2nd level by "var(_cons)" / ("var(_cons)" + "var(Residual)"). For my current analysis, this comes out to 0.1138989 / (0.1138989 + 1.777575) = 6.4%. So this is the variance attributed to the country-level. Later on I plan to use the full model to figure out the level of variance explained at level 1 and 2 based on how much residual variance is left after I input the variables.
While these are relatively simple calculations to do by externally, I would much rather do something akin to
But I cannot find where these are stored in Stata. I've been searching the "return list" and "ereturn list" commands, the documentation, and the forums for this information, but I cannot locate them. Hope someone can point me in the right direction. Thanks.
In my current analysis, I'm assessing some level 1 (individuals) and level 2 (countries) variables impact on a DV. In order to estimate the amount of variance that can be attributed to the country and individual level, I first run a "bare bones" model.
Code:
mixed Amental_healthN1 || Country:, ml variance robust
While these are relatively simple calculations to do by externally, I would much rather do something akin to
Code:
**PSEUDOCODE display "var(_cons)" / ("var(_cons)" + "var(Residual)").
Comment