Skip to contents

converts cor.test() model to APA format string

Usage

cor2apa(m, level = 0.95, digits = 3, format = "html")

Arguments

m

model from cor.test()

level

specify confidence level (default: 0.95). note: level should match the confidence level used in cor.test(). this argument does not actually update the confidence interval range, but only the reported confidence interval level

digits

round statistics to specified digit

format

specify format (default: html) (options: html, plain)

Value

Character string with APA-formatted correlation results.

See also

Other model2apa: lm2apa(), lmer2apa(), model2apa()

Examples

cor2apa(cor.test(carData::Salaries$yrs.since.phd, carData::Salaries$salary), format = 'plain')
#> r(395) = 0.419, p = 2.5e-18, 95% CI [0.335, 0.497]