Package: rmcorr 0.8.1

rmcorr: Repeated Measures Correlation

Compute the repeated measures correlation, a statistical technique for determining the overall within-individual relationship among paired measures assessed on two or more occasions, first introduced by Bland and Altman (1995). Includes functions for diagnostics, p-value, effect size with confidence interval including optional bootstrapping, as well as graphing. Also includes several example datasets. For more details, see the web documentation <https://lmarusich.github.io/rmcorr/index.html> and the original paper: Bakdash and Marusich (2017) <doi:10.3389/fpsyg.2017.00456>.

Authors:Jonathan Z. Bakdash [aut], Laura R. Marusich [aut, cre]

rmcorr_0.8.1.tar.gz
rmcorr_0.8.1.zip(r-4.7)rmcorr_0.8.1.zip(r-4.6)rmcorr_0.8.1.zip(r-4.5)
rmcorr_0.8.1.tgz(r-4.6-any)rmcorr_0.8.1.tgz(r-4.5-any)
rmcorr_0.8.1.tar.gz(r-4.7-any)rmcorr_0.8.1.tar.gz(r-4.6-any)
rmcorr_0.8.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
rmcorr/json (API)

# Install 'rmcorr' in R:
install.packages('rmcorr', repos = c('https://lmarusich.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/lmarusich/rmcorr/issues

Pkgdown/docs site:https://lmarusich.github.io

Datasets:
  • bland1995 - Repeated measurements of intramural pH and PaCO2
  • gilden2010 - Repeated measurements of reaction time and accuracy
  • HCAHPS2022 - Nested and multivariate survey measures of hospital patient experience and other measures
  • marusich2016_exp2 - Repeated measurements of dyads performance and subjective situation awareness
  • raz2005 - Repeated measurements of age and cerebellar volume
  • twedt_dist_measures - Repeated measures and multivariate measures of perceived distance

On CRAN:

Conda:

9.16 score 11 stars 189 scripts 5.1k downloads 70 mentions 6 exports 7 dependencies

Last updated from:13bda36a35. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK174
source / vignettesOK245
linux-release-x86_64OK180
macos-release-arm64OK197
macos-oldrel-arm64OK167
windows-develOK127
windows-releaseOK100
windows-oldrelOK94
wasm-releaseOK163

Exports:geom_rmcglancerequired_pkgsrmcorrrmcorr_mattidy

Dependencies:genericsGPArotationlatticemnormtnlmepsychRColorBrewer

Correlation Matrix using rmcorr_mat
Running Examples Requires corrplot [@corrplot2021] and corrr [@corrr2025] | Plotting a Correlation Matrix | Plotting Multiple Models | Adjusting for Multiple Comparisons | Examples with corrr package

Last update: 2026-04-15
Started: 2022-08-23

Reproduce Paper Results
Required Packages and Functions | 1. Figure 1: rmcorr and reg plot | 2. Figure 2: rmcorr vs OLS reg | 3. Figure 3: rmcorr w/data transformations | 4. Figure 4: Power curves | 5. Brain volume and age rmcorr and simple reg/cor results and Figure 5 | rmcorr and simple reg results | 6. Visual search rmcorr and simple reg/cor results and Figure 6 | Appendix C | Diagnostic Plot: Rmcorr and straight lines between points (not in paper)

Last update: 2026-04-15
Started: 2020-11-10

Frequently Asked Questions and Limitations
Frequently Asked Questions | How to Calculate Power | power.rmcorr Example | Exact Degrees of Freedom Example | Approximate Degrees of Freedom Example | How to Extract the Slope and its Confidence Interval | isa Error | Transformations | Limitations | Change Over Time | Non-Linearity | Varying Slopes with Influential Observations and/or Unbalanced Data | Other Implementations of rmcorr | 1) rmcorrShiny: Web and Standalone App with a Graphical Interface [@marusich2021rmcorrshiny] | 2) Python: rm_corr in Pingouin [@vallat2018pingouin] | 3) Stata: RMCORR [@stata.rmcorr]

Last update: 2024-07-26
Started: 2022-05-11

Overfitting/Pseudoreplication
Running Code Below Requires: dplyr, esc, and patchwork | Example of Overfitting | Comparison to rmcorr | Levels of Analysis | Consequences of Overfitting: | Spurious Precision: Underestimation of Variability | Detecting Overfitting | Caveats | Prevelance of Pseudoreplication

Last update: 2024-07-25
Started: 2024-07-25

Bootstrapping Example
Reproducible Example of Bootstrapping | Rmcorr effect size with Bootstrapped 95% Confidence Inverval | Sampling Distribution of Bootstrapped Effects

Last update: 2023-08-09
Started: 2023-03-21

Comparing Correlations
Running Examples Requires cocor | Independent Correlations | Correlated Correlations | Overlapping Correlations | Non-Overlapping Correlations

Last update: 2023-08-09
Started: 2022-08-23

Confidence Interval Fix
Confidence Interval Fix in 0.5.4 | Example with Slight Difference in CIs | Example with Substantial Difference in CIs | Another Slight Example: Same as Above with a Larger Sample Size

Last update: 2023-08-09
Started: 2022-12-13

Diagnostic Plots
Running Example Requires gglm [@gglm] | Plotting Model Diagnostics

Last update: 2023-08-09
Started: 2023-08-08

rmcorr Estimates with NaN
NaN estimates | Running Examples Requires ggExtra [@ggExtra] | Load data, visualize, and model | Add random noise | Caveats

Last update: 2023-08-09
Started: 2023-08-08