Hello,
I am trying to figure out how to calculate intraclass correlation (ICC) for a three level model using gllamm, a user-contributed command for multilevel modeling. gllamm does not accept the "estat icc" option. From what I am seeing online, I believe there is not a simple command for ICC with gllamm, and that I have to write out the formula for ICC. To start with, I am trying to find the unconditional ICC for the levels in my model.
Here is my unconditional model:
And here is my output:
However, I'm not understanding the formula and what numbers I need to plug in to calculate ICC for my level 2 and 3. Could anyone please help?
Many thanks,
Alyssa
I am trying to figure out how to calculate intraclass correlation (ICC) for a three level model using gllamm, a user-contributed command for multilevel modeling. gllamm does not accept the "estat icc" option. From what I am seeing online, I believe there is not a simple command for ICC with gllamm, and that I have to write out the formula for ICC. To start with, I am trying to find the unconditional ICC for the levels in my model.
Here is my unconditional model:
Code:
gllamm Garden_Active_, i(Garden_ID LGardenZip_) family(binomial) link(logit) nip(30) adapt
Code:
gllamm Garden_Active_, i(Garden_ID LGardenZip_) family(binomial) link(logit) nip(30) adapt Running adaptive quadrature Iteration 0: log likelihood = -2718.5586 Iteration 1: log likelihood = -2606.836 Iteration 2: log likelihood = -2600.9528 Iteration 3: log likelihood = -2600.8307 Iteration 4: log likelihood = -2600.8307 Adaptive quadrature has converged, running Newton-Raphson Iteration 0: log likelihood = -2600.8307 Iteration 1: log likelihood = -2600.8307 (backed up) Iteration 2: log likelihood = -2600.7843 Iteration 3: log likelihood = -2600.7388 Iteration 4: log likelihood = -2600.7386 number of level 1 units = 4035 number of level 2 units = 2432 number of level 3 units = 31 Condition Number = 2.1411013 gllamm model log likelihood = -2600.7386 -------------------------------------------------------------------------------- Garden_Active_ | Coef. Std. Err. z P>|z| [95% Conf. Interval] ---------------+---------------------------------------------------------------- _cons | -.0779572 .0776656 -1.00 0.315 -.230179 .0742645 -------------------------------------------------------------------------------- Variances and covariances of random effects ------------------------------------------------------------------------------ ***level 2 (Garden_ID) var(1): 4.6620217 (.59617179) ***level 3 (LGardenZip_) var(1): .01965498 (.03711558) ------------------------------------------------------------------------------
Many thanks,
Alyssa
Comment