Skip to content

RMeDPower2

Design and Modeling for Repeated Measures Studies

v1.0.2 · Jun 6, 2026 · GPL-3

Description

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>.

Downloads

CRAN

446

Last 30 days

8872nd

702

Last 90 days

702

Last year

Trend: +74.2% (30d vs prior 30d)

r2u CRAN

11

Last 30 days

22

Last 90 days

22

Last year

Trend: 0% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 14, 2026
ERROR 10 OK · 0 NOTE · 0 WARNING · 3 ERROR · 0 FAILURE Jun 2, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [108s/134s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # Load necessary libraries
  > library(testthat)
  > library(RMeDPower2)
  > 
  > # Set up testing environment
  > options(warn = -1)  # Suppress wa
...[truncated]...
 ──
  Expected `suppressWarnings(...)` not to throw any errors.
  Actually got a <simpleError> with message:
    non-numeric argument to mathematical function
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 143 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-devel-linux-x86_64-fedora-clang

tests

Running ‘testthat.R’ [5m/13m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # Load necessary libraries
  > library(testthat)
  > library(RMeDPower2)
  > 
  > # Set up testing environment
  > options(warn = -1)  # Suppress warni
...[truncated]...
 ──
  Expected `suppressWarnings(...)` not to throw any errors.
  Actually got a <simpleError> with message:
    non-numeric argument to mathematical function
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 143 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-devel-linux-x86_64-fedora-gcc

tests

Running ‘testthat.R’ [281s/421s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # Load necessary libraries
  > library(testthat)
  > library(RMeDPower2)
  > 
  > # Set up testing environment
  > options(warn = -1)  # Suppress wa
...[truncated]...
 ──
  Expected `suppressWarnings(...)` not to throw any errors.
  Actually got a <simpleError> with message:
    non-numeric argument to mathematical function
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 143 ]
  Error:
  ! Test failures.
  Execution halted
OK 6 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 8, 2026

Code

Code metrics have not been computed for this package yet.

Dependency Network

Dependencies Reverse dependencies lme4 dplyr simr magrittr ggplot2 ggtext quantreg tibble lmerTest DHARMa influence.ME EnvStats jsonlite RMeDPower2

Version History

2 tracked
updated 1.0.2 ← 1.0.1 diff Jun 6, 2026
new 1.0.1 May 7, 2026