Design and Modeling for Repeated Measures Studies
Overview
Provides complete functionality to analyse data from repeated measures experiments with hierarchical or crossed experimental designs. Supports testing modeling assumptions, identifying outlier observations and experimental units, estimating statistical power, and performing sample size calculations. Uses linear mixed effects models via 'lme4' and simulation-based power analysis via 'simr'. Handles both normal and non-normal error distributions including binomial and Poisson families. For more details see Shin et al. (2022) doi:10.1101/2022.07.18.500490, Bates et al. (2015) doi:10.18637/jss.v067.i01, Green and MacLeod (2016) doi:10.1111/2041-210X.12504, Hartig (2024) doi:10.32614/CRAN.package.DHARMa, Nieuwenhuis et al. (2012) doi:10.32614/RJ-2012-011, Millard (2013) doi:10.1007/978-1-4614-8456-1 and Kuznetsova et al. (2017) doi:10.18637/jss.v082.i13.
- Revised CRAN submission.
- Added simulateREs = "user-specified" argument to the DHARMa::simulateResiduals() function to make it compatible with the updates to DHARMa
- Added model fit to the output of getEstimatesOfInterest
From NEWS.md in the release
Install
Health
NOTERd contentsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Rd files without \usage: ‘PowerParams-class.Rd’ ‘ProbabilityModel-class.Rd’ ‘RMeDesign-class.Rd’ \arguments should not be documented without \usage.
- NOTE11 OK, 2 NOTE2026-09-08
- ERROR10 OK, 2 NOTE, 1 ERROR2026-09-07
- NOTE12 OK, 1 NOTE2026-07-11
- OK13 OK2026-06-14
- ERROR10 OK, 3 ERROR2026-06-02
Show 1 earlier changeHide 1 earlier change
- OK6 OK2026-05-08
Documentation
- Help pages
- 16
- Examples that run
- 67%6 run in a plain check · 3 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Dependencies
Installing RMeDPower2 adds 123 packages (64 with compiled code, 110 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
CRAN will archive these unless their check problems are fixed by the date shown. This package needs each one to install.
- DHARMafix by Nov 14
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.0.2Latest
- 1.0.12026-05-07
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-05-07
- Total releases
- 2 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.0
- Bundled data
- 243 KB / 7 files
- Download size
- 5.5 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("RMeDPower2")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.