For linear models, the r-squared and adjusted r-squared value is returned,
as provided by the summary
-function.
For linear mixed models, an r-squared approximation by computing the
correlation between the fitted and observed values, as suggested by
Byrnes (2008), is returned as well as a simplified version of
the Omega-squared value (1 - (residual variance / response variance),
Xu (2003), Nakagawa, Schielzeth 2013), unless n
is specified.
If n
is given, for linear mixed models pseudo r-squared measures based
on the variances of random intercept (tau 00, between-group-variance)
and random slope (tau 11, random-slope-variance), as well as the
r-squared statistics as proposed by Snijders and Bosker 2012 and
the Omega-squared value (1 - (residual variance full model / residual
variance null model)) as suggested by Xu (2003) are returned.
For generalized linear models, Cox & Snell's and Nagelkerke's
pseudo r-squared values are returned.
For generalized linear mixed models, the coefficient of determination
as suggested by Tjur (2009) (see also cod
). Note
that Tjur's D is restricted to models with binary response.
More ways to compute coefficients of determination are shown
in this great GLMM faq.
Furthermore, see r.squaredGLMM
or
rsquared
for conditional and marginal
r-squared values for GLMM's.