Description Usage Arguments Value Author(s) Examples
Given two sets of correlation coefficients and sample sizes, this function calculates and returns the z-scores and p-values associated with the difference between correlation coefficients. This function was adapted from https://stackoverflow.com/a/14519007/3357706.
1 | cor.diff.test(r1, r2, n, alternative = c("two.sided", "less", "greater"))
|
r1, r2 |
Numeric (vector or matrix) of correlation coefficients for both groups |
n |
Integer vector; number of observations for both groups |
alternative |
Character string, whether to do a two- or one-sided test.
Default: |
A list with elements p
and z
, the p-values
and z-scores for the difference in correlations.
Christopher G. Watson, cgwatson@bu.edu
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.