[R] Calculating correlation for a big matrix

Liviu Andronic landronimirc at gmail.com
Fri Nov 21 08:56:56 CET 2008


On Fri, Nov 21, 2008 at 1:27 AM, A Ezhil <ezhil02 at yahoo.com> wrote:
> I have a matrix of size 10000 x 50. I would like to calculate all possible pair-wise correlation coefficient (5x10^7 combinations) using cor(). How can I efficiently calcualte and save the result in a matrix?
>
You might also try rcorr(), library(Hmisc).
Liviu


-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail



More information about the R-help mailing list