R/meta_misc.R
cor.from.t.Rd
This function computes the Pearson correlation between paired measurements using a reported paired-samples t statistic and other sample information. This correlation estimate is needed in several functions that analyze mean differences and standardized mean differences in paired-samples studies.
cor.from.t(m1, m2, sd1, sd2, t, n)
estimated mean for measurement 1
estimated mean for measurement 2
estimated standard deviation for measurement 1
estimated standard deviation for measurement 2
value for paired-samples t-test
sample size
Returns the sample Pearson correlation between the two paired measurements
cor.from.t(9.4, 9.8, 1.26, 1.40, 2.27, 30)
#> Estimate
#> Correlation: 0.7415209
# Should return:
# Estimate
# Correlation: 0.7415209