corr_diff: Test of Two Correlations

Description Usage Arguments Details References Examples

Description

Provides statistical inference upon the difference between two independent correlations.

Usage

1
corr_diff(r1, n1, r2, n2, conf.int = 0.9, plot = FALSE)

Arguments

r1

correlation of group 1

n1

sample size of group 1

r2

correlation of group 2

n2

sample size of group 2

conf.int

(optional) confidence level of the interval. Defaults to 0.90

plot

(optional) logical indicator specifying to print associated plot. Defaults to FALSE

Details

Refer to vignette for further information.

References

Zou GY. (2007). Toward using confidence intervals to compare correlations. Psychological Methods, 12, 399-413.

Examples

1
corr_diff(r1 = 0.20, n1 = 71, r2 = 0.55, n2 = 46)

Example output

   Test of Two Correlations:
   diff = 0.35
   90% CI [0.08, 0.72]
   p value = 0.03

Inference: Evidence Present, r2 > r1, (CI does not contain 0).

mbir documentation built on May 1, 2019, 10:11 p.m.