Description Usage Arguments Value Author(s) References See Also Examples
Calculates an ICC for a level-1 variable by fitting a two-level unconditional model or unconditional growth model to determine the proportion of variance at each level. The ICC reflects the proportion of variance that is attributed to the higher level (e.g., ICC = 0.40 indicates that 40% of the variance in a variable is at level-2).
1 2 3 4 5 6 7 8 |
data |
dataset stored as dataframe |
user_id |
the name of the level-2 grouping variable (i.e., person id); can be stored as a factor, numeric, or integer within a dataframe |
var_id |
the name of the level-1 variable you want to calculate an ICC for; should be stored as numeric or integer within a dataframe |
var_type |
the type of level-1 variable you are using, either |
time_id |
if included, will calculate the ICC using an unconditional growth model (i.e., time included in the model as a predictor); should be stored as numeric or integer within a dataframe |
verbose |
if |
returns a value for the ICC
Myles A. Maillet, myles.a.maillet@gmail.com
Austin, P.C. & Merlo, J. (2017). Intermediate and advanced topics in multilevel logistic regression analysis. Statistics in medicine, 36(20), 3257-3277.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.