On Fri, 17 Oct 2003 16:36:47 +0200
Luca De Benedictis <[EMAIL PROTECTED]> wrote:

> Dear all,
> I am trying to compute a  matrix of Pearson's `r' or Spearman's `rho' 
> rank correlation coefficients using rcorr (Hmisc) the following way:
> 
>  > mx<-rcorr(x, type="spearman")[1]

Instead of [1] use $r.  Or use the new cor() function builtin to R 1.8.

Frank

> 
> but then ...
> 
>  > is.matrix(mx)
> [1] FALSE
> 
> Even if  I use as.matrix the result is not better.
> What can I do?
> 
> Thank you all
> 
> Luca
> 
> ______________________________________________
> [EMAIL PROTECTED] mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help


---
Frank E Harrell Jr    Professor and Chair            School of Medicine
                      Department of Biostatistics    Vanderbilt University

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to