r2mlm
r2mlm copied to clipboard
r2mlm: R Package for Calculating R-Squared in Multilevel Models
Better example of the documentation: ``` r2mlm_long_manual( data = test, covs = c("salary_c", "salary_m", "s_t_ratio", "interaction"), random_covs = c("salary_c"), clusterID = "schoolID", gammas = c(0.0771823, 0.0384119, -0.0399241, -0.0001657), Tau =...
I'm having an issue which I will describe below. Setup ```{r} library(lmerTest) library(r2mlm) test_data=read.csv("Test_data.csv") ``` Running models (Model 1) ```{r} does_work = lmer(Y1 ~ X + (1|ID), test_data) r2mlm(does_work) $Decompositions...
Hi, I'm currently trying to calculate R2 for my three-level MLM using the r2mlm3_manual() function. The problem I have is that one of my predictors, "Time" (Pre, Post & Follow...
Hello! Wonderful package here, so grateful for your work on this. I'm trying to use the r2mlm3_manual() function and I'm running into an error. It's possible I've just made a...
In the documentation for `r2mlm3_manual()`, both `Tau2_noncmc` and `Tau3_noncmc` say, `to be entered in the order listed by randomcovsl2_noncmc`. However, `randomcovsl2_noncmc` is not an argument in this function, though I...
The `r2mlm3_manual()` function has a typo when calculating the variance of `random_covs23`. Instead of `var_randomcovs23
Hey, Thanks a lot for this package ! I get the following error message though :  All the independent variables in the model are factors, except for the participants...
I have run a random intercepts model successfully: m1 r2mlm(m1) Error in `$
Spent a couple hours troubleshooting and realized that my dataframe was actually a tibble, which was leading r2mlm to give an error when I tried to put my model into...
- `model@cnms` for column names - `ngrps(model)` for number of groups