# r-squared calculation for multivariate linear mixed effect model: lme4

I've built a multivariate linear mixed effect model with 3 dependent variables and a repeated measures factor. My data follows a hierarchical structure where participants are nested within groups.

my model is as follows:

model <- lmer(value ~ variable:Time -1 + (0 + variable | Group/Participant), data = Fixed_Data


I'm attempting to calculate the overall r-squared for this model, and have been following this post.

As such, i've used this code:

r.squaredGLMM(model)


model1 <- lmer(DV1 ~ Time + (1|Group/Participant), data = Data) ...

• Did you try different packages? Eg does performance::r2() give similar or identical results? – Daniel Jun 3 at 20:08