Re: [R] Ack! Odd correlation matrix problem

From: Chris Bergstresser <chris_at_subtlety.com>
Date: Sun 17 Apr 2005 - 06:32:52 EST

Spencer Graves wrote:
 > Does the following answer the question:
> > cor(B, use="complete.obs")
** snip **
> > cor(B, use="pairwise.complete.obs")

    Yep. That's exactly the issue. I had thought the reference to casewise deletion in the help for "complete.obs" was referring solely to the two variables involved, not the entire dataset.

    The documentation might be a little clearer on this point for those just starting out in statistics, although I suppose it's only an issue if you're working with correlation matrices, which might imply you're really *not* just starting out in statistics, and should know better.


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sun Apr 17 06:50:47 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:13 EST