Package: r2glmm Type: Package Title: Computes R Squared for Mixed (Multilevel) Models Date: 2025-04-28 Version: 0.1.3 Authors@R: person("Byron", "Jaeger", email = "byron.jaeger@gmail.com", role = c("aut", "cre")) Description: The model R squared and semi-partial R squared for the linear and generalized linear mixed model (LMM and GLMM) are computed with confidence limits. The R squared measure from Edwards et.al (2008) is extended to the GLMM using penalized quasi-likelihood (PQL) estimation (see Jaeger et al. 2016 ). Three methods of computation are provided and described as follows. First, The Kenward-Roger approach. Due to some inconsistency between the 'pbkrtest' package and the 'glmmPQL' function, the Kenward-Roger approach in the 'r2glmm' package is limited to the LMM. Second, The method introduced by Nakagawa and Schielzeth (2013) and later extended by Johnson (2014) . The 'r2glmm' package only computes marginal R squared for the LMM and does not generalize the statistic to the GLMM; however, confidence limits and semi-partial R squared for fixed effects are useful additions. Lastly, an approach using standardized generalized variance (SGV) can be used for covariance model selection. Package installation instructions can be found in the readme file. Imports: mgcv, Matrix, pbkrtest, ggplot2, afex, stats, MASS, gridExtra, grid Suggests: lme4, nlme, testthat, data.table, dplyr, lmerTest License: GPL-2 RoxygenNote: 7.3.2 URL: https://github.com/bcjaeger/r2glmm BugReports: https://github.com/bcjaeger/r2glmm/issues Config/pak/sysreqs: cmake make libicu-dev Repository: https://bcjaeger.r-universe.dev Date/Publication: 2025-04-28 14:02:50 UTC RemoteUrl: https://github.com/bcjaeger/r2glmm RemoteRef: HEAD RemoteSha: f19be6656fbf38d31539a8e93d09d31d27890476 NeedsCompilation: no Packaged: 2026-09-18 06:34:03 UTC; root Author: Byron Jaeger [aut, cre] Maintainer: Byron Jaeger