Hello All,
I have the two models below, which are only different by the addition of the random intercept "|| first_school:" in the 2nd model. I want to know how much variance does the random intercept add to my model. I came across the following UCLA link but it talks about estimating effect size from "meglm." I am not sure how "mixed" and "meglm" differ but I want to keep using "mixed." Does anyone have any suggestion and can I apply the same methods that you recommend to models that use "xtmepoisson"?
Thank you for your time
Best wishes
Patrick
I have the two models below, which are only different by the addition of the random intercept "|| first_school:" in the 2nd model. I want to know how much variance does the random intercept add to my model. I came across the following UCLA link but it talks about estimating effect size from "meglm." I am not sure how "mixed" and "meglm" differ but I want to keep using "mixed." Does anyone have any suggestion and can I apply the same methods that you recommend to models that use "xtmepoisson"?
Thank you for your time
Best wishes
Patrick
Code:
********Model 1
mixed AvPAwk person_ev1 person_circum1 extrinsic_ev1 extrinsic_circum1 cycle cycle2 ///
> if girl==1 || ID: cycle, covariance(uns)
Performing EM optimization:
Performing gradient-based optimization:
Iteration 0: log likelihood = -8666.8432
Iteration 1: log likelihood = -8666.8431
Computing standard errors:
Mixed-effects ML regression Number of obs = 4,943
Group variable: ID Number of groups = 509
Obs per group:
min = 1
avg = 9.7
max = 16
Wald chi2(6) = 116.80
Log likelihood = -8666.8431 Prob > chi2 = 0.0000
-----------------------------------------------------------------------------------
AvPAwk | Coef. Std. Err. z P>|z| [95% Conf. Interval]
------------------+----------------------------------------------------------------
person_ev1 | .0283224 .0288354 0.98 0.326 -.0281939 .0848387
person_circum1 | -.1669628 .0283415 -5.89 0.000 -.2225112 -.1114145
extrinsic_ev1 | .0417367 .0295919 1.41 0.158 -.0162625 .0997358
extrinsic_circum1 | -.0437448 .0274655 -1.59 0.111 -.0975763 .0100867
cycle | .1340743 .018817 7.13 0.000 .0971937 .170955
cycle2 | -.0081732 .0010466 -7.81 0.000 -.0102245 -.006122
_cons | 4.130385 .0985388 41.92 0.000 3.937252 4.323517
-----------------------------------------------------------------------------------
------------------------------------------------------------------------------
Random-effects Parameters | Estimate Std. Err. [95% Conf. Interval]
-----------------------------+------------------------------------------------
ID: Unstructured |
var(cycle) | .0141806 .0016476 .0112927 .0178071
var(_cons) | 2.231859 .1961679 1.878671 2.651444
cov(cycle,_cons) | -.1042847 .0152304 -.1341357 -.0744337
-----------------------------+------------------------------------------------
var(Residual) | 1.418693 .0316948 1.357913 1.482194
------------------------------------------------------------------------------
LR test vs. linear model: chi2(3) = 2175.37 Prob > chi2 = 0.0000
Note: LR test is conservative and provided only for reference.
*************Model 2
. mixed AvPAwk person_ev1 person_circum1 extrinsic_ev1 extrinsic_circum1 cycle cycle2 ///
> if girl==1 || first_school: || ID: cycle, covariance(uns)
Performing EM optimization:
Performing gradient-based optimization:
Iteration 0: log likelihood = -8664.574
Iteration 1: log likelihood = -8664.5739
Computing standard errors:
Mixed-effects ML regression Number of obs = 4,943
-------------------------------------------------------------
| No. of Observations per Group
Group Variable | Groups Minimum Average Maximum
----------------+--------------------------------------------
first_school | 23 7 214.9 537
ID | 509 1 9.7 16
-------------------------------------------------------------
Wald chi2(6) = 116.56
Log likelihood = -8664.5739 Prob > chi2 = 0.0000
-----------------------------------------------------------------------------------
AvPAwk | Coef. Std. Err. z P>|z| [95% Conf. Interval]
------------------+----------------------------------------------------------------
person_ev1 | .0268595 .0288265 0.93 0.351 -.0296394 .0833585
person_circum1 | -.1678182 .028333 -5.92 0.000 -.2233498 -.1122865
extrinsic_ev1 | .0416861 .0295803 1.41 0.159 -.0162902 .0996624
extrinsic_circum1 | -.0421132 .0274558 -1.53 0.125 -.0959255 .0116992
cycle | .1337544 .0188523 7.09 0.000 .0968046 .1707041
cycle2 | -.0081533 .0010474 -7.78 0.000 -.0102063 -.0061003
_cons | 4.104399 .1151006 35.66 0.000 3.878806 4.329992
-----------------------------------------------------------------------------------
------------------------------------------------------------------------------
Random-effects Parameters | Estimate Std. Err. [95% Conf. Interval]
-----------------------------+------------------------------------------------
first_school: Identity |
var(_cons) | .0660652 .0470587 .0163552 .2668639
-----------------------------+------------------------------------------------
ID: Unstructured |
var(cycle) | .0141876 .0016478 .0112992 .0178145
var(_cons) | 2.159549 .1940144 1.810885 2.575344
cov(cycle,_cons) | -.1033947 .0151213 -.1330319 -.0737575
-----------------------------+------------------------------------------------
var(Residual) | 1.418517 .0316904 1.357745 1.482009
------------------------------------------------------------------------------
LR test vs. linear model: chi2(4) = 2179.91 Prob > chi2 = 0.0000
Note: LR test is conservative and provided only for reference.

Comment