I have a two-level nested dataset where students are nested in teachers. To calculate ICC for a given variable I can use,
model0 <- lmer (Variable1 ~ 1 + (1|teacher), data=df)
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:
model_Latent <- '
Latent_Var =~ Variable1 + Variable2 + Variable3 '
Is there a way to calculate ICC for latent variables?