[R] cor.test for a correlation matrix

Brett Magill freud at starpower.net
Thu Nov 1 01:59:21 CET 2001

Is there a simple way to run cor.test on for a matrix of correlations?

Of course, cor on a data frame produces a correlation matrix, but cor.test will only take two variables at a time.  Is there a way to get behavior similar to that of cor with cor.test?

I suppose the programming alternative would be to run two for loops with the number of items and cor test embedded accessing the columns of the data frame.  

Is there a simpler way?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20011031/21f0f50b/attachment.html

More information about the R-help mailing list