Skip to content

r2mlm

0.3.8

R-Squared Measures for Multilevel Models

0packages depend
6.5Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Mairead ShawFirst published 2020-09-2510 releasesCRAN page ↗GitHub ↗

Generates both total- and level-specific R-squared measures from Rights and Sterba’s (2019) doi:10.1037/met0000184 framework of R-squared measures for multilevel models with random intercepts and/or slopes, which is based on a complete decomposition of variance. Additionally generates graphical representations of these R-squared measures to allow visualizing and interpreting all measures in the framework together as an integrated set. This framework subsumes 10 previously-developed R-squared measures for multilevel models as special cases of 5 measures from the framework, and it also includes several newly-developed measures. Measures in the framework can be used to compute R-squared differences when comparing multilevel models (following procedures in Rights & Sterba (2020) doi:10.1080/00273171.2019.1660605). Bootstrapped confidence intervals can also be calculated. To use the confidence interval functionality, download bootmlm from https://github.com/marklhc/bootmlm.

Install

Health

CRAN checks
13OK
Slowest check: 2.5 min · r-oldrel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
9
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 505 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
83%
Documented parameters
80%
Return-value docs
100%
References docs
0%

Downloads

6.5K
CRAN downloads in the past year
Rank #6,654 · ~18/day · ~540/mo
Daily download trend is not available in this view yet.
31030 days
1.2K90 days
6.5K1 year
Compare downloads with other packages →
Also on95 r2u25 autocran59 c2d4u

Repository

Repository
30Stars
1Forks
20Open issues
0Open PRs
0Releases
132Commits
1Contributors
132 commits · Last activity 2025-04-19 · 0% stars, 30d

Stars over time

2025-04-24 · 282026-07-07 · 30

Repository practices

Upstream repositoryBeta

5 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/mkshaw/r2mlm on 2026-08-16.

Continuous integration (1)
Travis CI
Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Show all practices
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)
Depends (3)
R >= 3.2.0lme4nlme
LinkingTo (0)
none
Suggests (3)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (4)
Maintainer (1)
Author, Maintainer
Authors (4)
Author, Maintainer
Package Timeline

10 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.3.8Latest
    2025-04-20 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.3.7
    2023-12-20 · diff ↗
  • 0.3.5
    2023-07-20 · diff ↗
  • 0.3.4
    2023-07-11 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.3.3
    2023-03-28 · diff ↗
  • 0.3.2
    2022-07-07 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.3.1
    2021-11-04 · diff ↗
  • 0.3.0
    2021-06-04 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.2.0
    2020-12-10 · diff ↗
  • 0.1.0
    2020-09-25
Show 1 earlier events
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2020-09-25
Total releases
10 / 6 yrs
License
GPL-3 OSI
Minimum R
≥ 3.2.0
Bundled data
208 KB / 1 file
Download size
333 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("r2mlm")
Shaw, M., Flake, J., Rights, J., & Sterba, S. (2025). r2mlm: R-Squared Measures for Multilevel Models (Version 0.3.8) [Computer software]. https://doi.org/10.32614/CRAN.package.r2mlm

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for r2mlm version 0.3.8 [Data set]. HJJB, LLC. Data release v2026-08-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy