r2glmm
r2glmm copied to clipboard
Extracting semi-partial R^2 from multivariate (repeated measure) mixed model
Hello,
I am using lme4 to fit a multivariate mixed model, where traits are treated as repeated measures on the same sampling unit, with a structure such as: lmer(y~ Trait:(1 + EnvA + EnvB ) -1 + (Trait - 1 | Species)). When I try to extract semi-partial R2 using r2beta, the function throws an error "attribute 'names' [2] must be of same length as vector [1]". If I run the same model without " -1" prior to the random effects, there is no issue.
I am wondering whether there are deeper reasons not to do this or if this is just a glitch?
Thanks in advance,
Françoise