Description Usage Arguments Value References
Function that computes the R-squared measure based on ANOVA decomposition measure (Edoardo Costantini, 2018). The explained variance is split into the explained variance for level-1 (within subjects), for the level-2 (between subjects) and the total explained variance.
1 |
dat |
data set |
y |
dependent variable of the multilevel model |
grpid |
group identity (cluster variable) |
cov |
covariates in the MLA model |
xvar1 |
name of first time variable from the cyclic process |
xvar2 |
name of optional second time variable from the cyclic process |
fit |
lmer or lmerTest object (fit multilevel model) |
vector containing three values, named: "level_1_R2","level_2_R2", "total_R2"
Constantini, E. (2018). R-squared measures in Multilevel Modeling: The undesirable property of negative R-squared values. Downloaded from http://arno.uvt.nl/show.cgi?fid=146739, August 21, 2019.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.