Calculate the repeated measures correlation coefficient.
rmcorr(
participant,
measure1,
measure2,
dataset,
CI.level = 0.95,
CIs = c("analytic", "bootstrap"),
nreps = 100,
bstrap.out = F
)
A list with class "rmc" containing the following components.
the value of the repeated measures correlation coefficient.
the degrees of freedom
the p-value for the repeated measures correlation coefficient.
the 95% confidence interval for the repeated measures correlation coefficient.
the multiple regression model used to calculate the correlation coefficient.
the bootstrap resampled correlation values.
A variable giving the subject name/id for each observation.
A numeric variable giving the observations for one measure.
A numeric variable giving the observations for the second measure.
The data frame containing the variables.
The confidence level of the interval
The method of calculating confidence intervals.
The number of resamples to take if bootstrapping.
Determines if the output include the bootstrap resamples.
Bakdash, J.Z., & Marusich, L.R. (2017). Repeated Measures Correlation. Frontiers in Psychology, 8, 456, tools:::Rd_expr_doi("https://doi.org/10.3389/fpsyg.2017.00456").
Bakdash, J. Z., & Marusich, L. R. (2019). Corrigendum: Repeated Measures Correlation. Frontiers in Psychology, 10, tools:::Rd_expr_doi("https://doi.org/10.3389/fpsyg.2019.01201").
Bland, J.M., & Altman, D.G. (1995a). Calculating correlation coefficients with repeated observations: Part 1 -- correlation within subjects. BMJ, 310, 446, tools:::Rd_expr_doi("https://doi.org/10.1136/bmj.310.6977.446")
Bland, J.M., & Altman, D.G. (1995b). Calculating correlation coefficients with repeated observations: Part 2 -- correlation within subjects. BMJ, 310, 633, tools:::Rd_expr_doi("https://doi.org/10.1136/bmj.310.6980.633")
plot.rmc, geom_rmc
## Bland Altman 1995 data
rmcorr(Subject, PaCO2, pH, bland1995)
Run the code above in your browser using DataLab