Re: [R] cor and missing values. Bug?

About this list Date view Thread view Subject view Author view Attachment view

From: Peter Dalgaard (p.dalgaard@biostat.ku.dk)
Date: Wed 26 May 2004 - 09:22:44 EST


Message-id: <x2zn7whz23.fsf@biostat.ku.dk>

Jane Fridlyand <janef@stat.berkeley.edu> writes:

> There seems to be an issue in computing rank correlations with missing
> values present. I think this comes from the way rank() function works but
> I am not sure how to go about this. Rank function places missing values at
> the end by default thus skewing the rank relationship between two vectors:
>
> Example:
>
> R : Copyright 2003, The R Foundation for Statistical Computing
> Version 1.8.1 (2003-11-21), ISBN 3-900051-00-3

Not to put too fine a point on it, but did you consider checking the
NEWS file for the most recent version (1.9.0,
http://cran.r-project.org/src/base/NEWS)?

    o The cor() function did not remove missing values in the
        non-Pearson case.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907

______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:12 EST