
Last chance! 50% off unlimited learning
Sale ends in
Calculates Xu' Omega-squared value, a simple R2 equivalent for linear mixed models.
r2_xu(model)
A linear (mixed) model.
The R2 value.
r2_xu()
is a crude measure for the explained variance from
linear (mixed) effects models, which is originally denoted as
.
Xu, R. (2003). Measuring explained variation in linear mixed effects models. Statistics in Medicine, 22(22), 3527<U+2013>3541. 10.1002/sim.1572
# NOT RUN {
model <- lm(Sepal.Length ~ Petal.Length + Species, data = iris)
r2_xu(model)
# }
Run the code above in your browser using DataLab