Dear all,
In the next (empty) model, where I try to explain expectation of university graduation among teenagers in PISA, I consider the nesting of individuals (teenagers) into schools (level 2) and countries (level 3). But the model does not have any covariate at any level. In order to know to what extent a multilevel model is justified, I want to know how variance is distributed; or, in other words, how variance depends on the fact that observations are grouped at each level.
This is the reason why I run 'estat icc' after the empty model. The output tells me that the % of the residual variance that is accounted for by the clustering of individuals into countries is 13.2, far below the variance that is explained by how individuals are nested in schools within countries 39.8%
My puzzle comes when I add a number of individual-level covariates to the previous (empty) model. The variance component corresponding to schools within countries decreases (not much), but, to my, surprise the residual variance to be attributed to country level increases, instead of decreasing (see below: 0.29, instead of 0.13). .
Could anybody provide an explanation for this? I would have expected that part of the country-level variance would have been absorbed or captured by the individual-level variables introduced in the second model (compositional effect), but the opposite happens.
Many thanks for your attention
Luis Ortiz
In the next (empty) model, where I try to explain expectation of university graduation among teenagers in PISA, I consider the nesting of individuals (teenagers) into schools (level 2) and countries (level 3). But the model does not have any covariate at any level. In order to know to what extent a multilevel model is justified, I want to know how variance is distributed; or, in other words, how variance depends on the fact that observations are grouped at each level.
This is the reason why I run 'estat icc' after the empty model. The output tells me that the % of the residual variance that is accounted for by the clustering of individuals into countries is 13.2, far below the variance that is explained by how individuals are nested in schools within countries 39.8%
PHP Code:
. xtmelogit expect_ISCED5A if fisced4!=5 || country3: || schoolid:
Refining starting values:
[Iterations omitted]
Mixed-effects logistic regression Number of obs = 152,968
----------------------------------------------------------------------------
| No. of Observations per group Integration
Group variable | groups Minimum Average Maximum points
----------------+-----------------------------------------------------------
country3 | 28 3,130 5,463.1 11,565 7
schoolid | 6,159 1 24.8 242 7
----------------------------------------------------------------------------
Wald chi2(0) = .
Log likelihood = -86627.398 Prob > chi2 = .
------------------------------------------------------------------------------
expect_IS~5A | Coefficient Std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
_cons | -.3936643 .1619796 -2.43 0.015 -.7111385 -.0761901
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Random-effects parameters | Estimate Std. err. [95% conf. interval]
-----------------------------+------------------------------------------------
country3: Identity |
sd(_cons) | .8508562 .1152485 .6524704 1.109562
-----------------------------+------------------------------------------------
schoolid: Identity |
sd(_cons) | 1.211522 .0149724 1.18253 1.241226
------------------------------------------------------------------------------
LR test vs. logistic model: chi2(2) = 37745.26 Prob > chi2 = 0.0000
Note: LR test is conservative and provided only for reference.
. estat icc
Residual intraclass correlation
------------------------------------------------------------------------------
Level | ICC Std. err. [95% conf. interval]
-----------------------------+------------------------------------------------
country3 | .13207 .03105 .0821347 .205565
schoolid|country3 | .3998355 .0219032 .3577718 .4434301
------------------------------------------------------------------------------
My puzzle comes when I add a number of individual-level covariates to the previous (empty) model. The variance component corresponding to schools within countries decreases (not much), but, to my, surprise the residual variance to be attributed to country level increases, instead of decreasing (see below: 0.29, instead of 0.13). .
PHP Code:
. xtmelogit expect_ISCED5A immig3 famstruc3 Above_mode Below_mode PV1MATH PV1READ positive_att vocational ib4.fisced4 if fisced4!=5 || country3: || schoolid:
PHP Code:
. estat icc
Residual intraclass correlation
------------------------------------------------------------------------------
Level | ICC Std. err. [95% conf. interval]
-----------------------------+------------------------------------------------
country3 | .294492 .0567162 .1964395 .4161412
schoolid|country3 | .3608058 .051421 .2672012 .4663342
------------------------------------------------------------------------------
Could anybody provide an explanation for this? I would have expected that part of the country-level variance would have been absorbed or captured by the individual-level variables introduced in the second model (compositional effect), but the opposite happens.
Many thanks for your attention
Luis Ortiz
Comment