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.
install.packages('rmcorr')
#development version:
# install.packages("devtools")
::install_github("lmarusich/rmcorr") devtools
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
A Shiny web and standalone app with a graphical user interface is
also available:
Web app
Standalone
app