powered by
ICC.merMod calculates the intra-class correlation (ICC) from a fitted multi-level model using the 'lme4' package.
ICC.merMod
# S3 method for merMod ICC(model, ...)
A fitted model of type 'merMod' (linear, generalized, or nonlinear).
Not currently implemented; used to ensure consistency with S3 generic.
The intra-class correlation of the model.
The ICC is the proportion of variance that is between-person variance. For more information, see Hoyt & Kenny (2013).
ICC.lme
# NOT RUN { # iris data if (require(lme4, quietly=TRUE)) { model <- lmer(Sepal.Width ~ 1 + (1|Species), data=iris) ICC(model) # .49 of variance is between-subjects } # }
Run the code above in your browser using DataLab