corr.test {stats} | R Documentation |
values between elements of a matrix or data.frame.
Although the cor function finds the correlations for
a matrix, it does not report probability values. cor.test
does, but for only one pair of variables at a time.
corr.test uses cor to find the correlations for either
complete or pairwise data and reports the sample sizes
and probability values as well. For symmetric matrices,
raw probabilites are reported below the diagonal and
correlations adjusted for multiple comparisons above the
diagonal. In the case of different x and ys, the default
is to adjust the probabilities for multiple tests. Both
corr.test and corr.p return raw and adjusted confidence
intervals for each correlation.
corr.test(x,
y = NULL,
use = "pairwise",
method = "pearson");