[R]Spearman Correlation

Xiao, Nianqing (NCI) xiaon at mail.nih.gov
Fri Apr 26 16:18:46 CEST 2002


I should have restated my question more clear. What I am looking for is a
method to calculate Pearson R for a large matrix, and handle the NA value
(with dif options) in the meantime, like what cor() does on a matrix for
Pearson correlation. I know I can write my own function with rank() and
cor(). I just want to find out if other people have already made the


-----Original Message-----
From: Peter Dalgaard BSA [mailto:p.dalgaard at biostat.ku.dk]
Sent: Friday, April 26, 2002 10:00 AM
To: Xiao, Nianqing (NCI)
Cc: 'r-help at stat.math.ethz.ch'
Subject: Re: [R]Spearman Correlation

"Xiao, Nianqing (NCI)" <xiaon at mail.nih.gov> writes:

> Hi all, 
> Is there a convenient way to calculate Spearman correlation coefficients
> R? 

cor.test(...., method="spearman")

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list