Hi,
I have a two-level nested dataset where students are nested in teachers. To calculate ICC for a given variable I can use,
library(lme4)
model0 <- lmer (Variable1 ~ 1 + (1|teacher), data=df)
summary(model0)
Running this model gives me the Between and Within group variances for teachers to calculate ICC.
However, I would like to calculate ICC at level 2 (i.e., teachers) for a latent variable instead of observed variable.
My latent variable is:
library (lavaan)
model_Latent <- '
measurement model
Latent_Var =~ Variable1 + Variable2 + Variable3 '
Is there a way to calculate ICC for latent variables?
Thanks!