We're using MuMIn in R to look at the delta R-squared when adding a term into a mixed model like this:
> mod1 <- lmer( DV ~ IV1+IV2+IV3+IV4+IV5+IV6+IV7+IV8+IV9 + (1|IV9:ID), data=dF, REML=FALSE)
> mod2 <- lmer( DV ~ IV1+IV2+IV3+IV4+IV5+IV6+IV7+IV8+IV9 + (1|IV9:ID) + IV10, data=dF, REML=FALSE)
> r.squaredGLMM(mod1)
R2m R2c
[1,] 0.1878124 0.6135028
> r.squaredGLMM(mod2)
R2m R2c
[1,] 0.320143 0.6137161
So from looking at the marginal pseudo-r-squared (R2m), which to my understanding looks at variance explained by fixed factors only, the addition of the single fixed-factor IV10
explains an appreciable chunk of extra variance. That makes sense. What I don't understand is how in the second model, the conditional pseudo-r-squared (R2c), which to my understanding looks at all the variance explained, increases hardly at all, despite the increase in marginal variance explained. The only way I understand this could be possible is if the variance explained by random factors went down by roughly the same amount as variance explained by fixed factors went up. But the random component is the same in each model. What gives?
EDIT: In response to Frans' question, I tried the models again without nesting ID
in IV9
(i.e. without bothering to nest participant ID in country), so (1|ID)
instead of (1|IV9:ID)
and the results are completely the same. I think we were nesting ID inside country in case participants from different countries had the same ID code, but this result suggests they don't. Anyway, it's apparently not about the nesting issue.
EDIT2: In response to a question, here is the variance
> VarCorr(mod1)
Groups Name Std.Dev.
Country:ID (Intercept) 0.86373
Residual 0.82301
> VarCorr(mod2)
Groups Name Std.Dev.
Country:ID (Intercept) 0.71748
Residual 0.82301
EDIT 3: It's exactly the same in the version with no nesting. I think nesting is unnecessary for this model, it was done just in case ID numbers were duplicated across countries, so the nesting issue is a red herring:
> VarCorr(mod1)
Groups Name Std.Dev.
ID (Intercept) 0.86373
Residual 0.82301
> VarCorr(mod2)
Groups Name Std.Dev.
ID (Intercept) 0.71748
Residual 0.82301