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.


rmcorr

Repeated measures correlation (rmcorr) is a statistical technique for determining the common within-individual association for paired measures assessed on two or more occasions for multiple individuals.

Installation

install.packages('rmcorr')
# install.packages("devtools")
devtools::install_github("lmarusich/rmcorr")

Example

 
library(rmcorr)
rmcorr(Subject, PacO2, pH, bland1995)
#> Warning in rmcorr(Subject, PacO2, pH, bland1995): 'Subject' coerced into a
#> factor
#> 
#> Repeated measures correlation
#> 
#> r
#> -0.5067697
#> 
#> degrees of freedom
#> 38
#> 
#> p-value
#> 0.0008471081
#> 
#> 95% confidence interval
#> -0.7112297 -0.223255

News

rmcorr 0.3.0

  • column names can be entered as strings and dynamically
  • dataset parameter is no longer required in the plot.rmc function
  • Added a NEWS.md file to track changes to the package.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rmcorr")

0.3.0 by Laura R. Marusich, a year ago


Browse source code at https://github.com/cran/rmcorr


Authors: Jonathan Z. Bakdash , Laura R. Marusich


Documentation:   PDF Manual  


GPL-2 license


Imports stats, grDevices, graphics, psych, RColorBrewer

Suggests knitr, rmarkdown, plotrix, ggplot2, lme4, merTools, pwr


See at CRAN