[R] Correlation Matrix in R

Mark Podolsky podolsmg at mcmaster.ca
Wed Oct 26 22:24:34 CEST 2011


Hi,

rcor.test in library(ltm) will provide a correlation matrix with p-values on the bottom-half of the matrix.


Mark

On 2011-10-26, at 7:03 AM, AlexC wrote:

> Thank you for your quick reply and helpful advice.
> 
> Using this argument allows me to do what I needed to do
> 
> Now the only other thing I wanted to accomplish was to obtain the top half
> of the matrix with p values 
> and the bottom half with the correlations, to observe the significant
> correlations.  I have been able to use a few functions such as rcorr, and
> cor.matrix to get such information but it isn't output in a format that I
> can save with the write.table function or write.clipboard
> 
> the pair function allows a graphical display of the data on the other hand
> (with correlation graphics on the bottom half) and I have added an argument
> which allows to view the significant p values.  But I wanted to know if I
> could also do the above easily.
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/Correlation-Matrix-in-R-tp3938274p3940170.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list