[R] Matrix with p-values with reference to a correlation matrix

From: Smit, R. (Robin) <robin.smit_at_tno.nl>
Date: Tue 21 Feb 2006 - 00:05:14 EST


Dear mailing list member  

I have got the following question:

The function "cor.test(x1, x2)$p.value" computes the statistical significance of the correlation between vectors x1 and x2.

However, I have got a data matrix with many variables.

Instead of typing in all possible combinations, I was wondering if there is perhaps an R-function that produces a matrix showing the statistical significance (p-value) of each correlation (with a similar format as the correlation matrix).  

Kind regards,
Robin Smit

This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/disclaimer/email.html

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Feb 21 00:09:56 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:36 EST