Skip to content
Prev 233821 / 398502 Next

Correlation question

Hi,

Does your data have missing values?  I am not sure it would change
anything, but perhaps try adding:

cor(test2, method = "spearman", use = "pairwise.complete.obs")

or something of the like.  I am not sure what R does by default.  My
reasoning stems from this particular passage in the documentation:

     If ?use? is ?"everything"?, ?NA?s will propagate conceptually,
     i.e., a resulting value will be ?NA? whenever one of its
     contributing observations is ?NA?.

I do not think the names should make a difference (unless you're
talking about human error).

Best regards,

Josh

On Wed, Sep 8, 2010 at 12:35 PM, Stephane Vaucher
<vauchers at iro.umontreal.ca> wrote: