Compute semi-variance (partial R[2]) for GLMMs fit used lme4.
library(lme4)
example <- data.frame(
y = rnorm(100),
x = rnorm(100),
nested1 = letters[1:20],
nested2 = rep(letters[1:5], each = 4),
crossed = letters[4:1]
)
model <- lmer(y ~ x + (1 | nested1/nested2) + (1 | crossed), example)
part_GLMM(model)