Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: GLLAMM help

From   Stas Kolenikov <[email protected]>
To   [email protected]
Subject   Re: st: GLLAMM help
Date   Sat, 2 Oct 2004 18:53:24 -0400

On Sat, 02 Oct 2004 22:24:15 +0000, Dana Shills <[email protected]> wrote:
> How do you obtain the residual variance in a model? Im trying to see what
> percentage of total variance is explained by the variables in the model. So
> for instance, when I run:
> gllamm y, i(size country) link(ologit) adapt
> I obtain
> Variances and covariances of random effects
> ------------------------------------------------------------------------------
> ***level 2 (size)
>     var(1): .05399151 (.04772325)
> ***level 3 (country)
>     var(1): 0.0116962 (0.0113)
> ------------------------------------------------------------------------------
> So is residual variance(ie unexplained variance)
> just=1-(0.05399151)-(0.0116962)?

No. There are no natural concepts of total or explained variances
outside of linear regression model. The primary use of the reported
variance is to test the hyporhesis that the variance is equal to zero,
and there is no effect at this level. For your results, this seems to
be the case: neither the country nor the size seem to matter. This is
a good news: you don't have to complicate things and -gllamm- them;
the built-in -ologit- will do.

Besides, those variances add to each other, so the total variance is
_pi^2/6 + 0.054 + 0.012.

By the way, what does the size mean in your model?

Stas Kolenikov
*   For searches and help try:

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