Learn R Programming

vcmeta (version 1.5.0)

cor.from.t: Computes a Pearson correlation between paired measurements from a paired-samples t statistic

Description

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.

Usage

cor.from.t(m1, m2, sd1, sd2, t, n)

Value

Returns the sample Pearson correlation between the two paired measurements

Arguments

m1

estimated mean for measurement 1

m2

estimated mean for measurement 2

sd1

estimated standard deviation for measurement 1

sd2

estimated standard deviation for measurement 2

t

value of paired-samples t-test

n

sample size

Examples

Run this code
cor.from.t(9.4, 9.8, 1.26, 1.40, 2.27, 30)

# Should return:
#                Estimate
# Correlation:  0.7415209


Run the code above in your browser using DataLab