powered by
Helper functions to compute important statistics from correlation coefficients.
r2z(r)z2r(z)r2t(r, n)t2r(t, n)r2p(r, n)rconfint(r, n, alpha = 0.05)compcorr(r1, r2, n1, n2)# S3 method for compcorr print(x, ...)
z2r(z)
r2t(r, n)
t2r(t, n)
r2p(r, n)
rconfint(r, n, alpha = 0.05)
compcorr(r1, r2, n1, n2)
# S3 method for compcorr print(x, ...)
a correlation value
a Z-score
sample sizes
a t-score
the significance level to use
a compcorr object to print
compcorr
ignored
r2z(): converts correlation coefficients to z-scores
r2z()
z2r(): converts z-scores to correlation coefficients
z2r()
r2t(): Converts correlation coefficients to t-scores
r2t()
t2r(): Converts t-scores to correlation coefficients
t2r()
r2p(): Computes the two-sided p-value for a given correlation
r2p()
rconfint(): Computes confidence intervals for one or multiple correlation coefficients
rconfint()
compcorr(): computes the significance of the difference between two correlation coefficients
compcorr()
print(compcorr): computes the significance of the difference between two correlation coefficients
print(compcorr)
cormean
z <- r2z(.5) r <- z2r(z) t<-r2t(r,30) r2p(r,30) print(rconfint(r,30)) print(compcorr(.5,.7,20,20))
Run the code above in your browser using DataLab