get_icc | R Documentation |
get_icc() it reurns the intra class correlation of an mlm model
get_icc(x)
mlm_model |
it requires an mlm_model, generated by lme4. If this is a null, is the percentage of variance between clusters. |
if the mlm_model is a null model it returns the ICC. If is a mlm_model with covariates, it returns the conditional variance between clusters.
a numeric object.
lme4::lmer(y ~ 1 + (1|id_j), data = clustered_data, REML = FALSE) %>%
get_icc(.)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.