correlation-tools: Correlation tools

correlation-toolsR Documentation

Correlation tools

Description

Helper functions to compute important statistics from correlation coefficients.

Usage

r2z(r)

z2r(z)

r2t(r, n)

r2p(r, n)

rconfint(r, n, alpha = 0.05)

compcorr(r1, r2, n1, n2)

Arguments

r, r1, r2

a correlation value

z

a Z-score

n, n1, n2

sample sizes

alpha

the significance level to use

Functions

  • r2z(): converts correlation coefficients to z-scores

  • z2r(): converts z-scores to correlation coefficients

  • r2t(): Converts correlation coefficients to t-scores

  • r2p(): Computes the two-sided p-value for a given correlation

  • rconfint(): Computes confidence intervals for a given correlation coefficient

  • compcorr(): computes the significance of the difference between two correlation coefficients

See Also

cormean, multiple.cor, partial.cor

Examples

z <- r2z(.5)
r <- z2r(z)
t<-r2t(r,30)
r2p(r,30)
print(rconfint(r,30))
print(compcorr(.5,.7,20,20))

AATtools documentation built on Aug. 12, 2022, 5:05 p.m.