corr.test(x, y = NULL, use = "pairwise",method="pearson")
cor
function to find the correlations, and then applies a t-test to the individual correlations using the formula
$$t = \frac{r * \sqrt(n-2)}{\sqrt(1-r^2)}$$cor.test
for tests of a single correlation, Hmisc::rcorr for an equivalant function, r.test
to test the difference between correlations, and cortest.mat
to test for equality of two correlation matrices.data(sat.act)
corr.test(sat.act)
Run the code above in your browser using DataLab