Re: [R] strange behavior of cor() with pairwise.complete.obs

2008-01-03 Thread Peter Dalgaard
Hilmar Berger wrote: > Peter Dalgaard schrieb: > >> Hilmar Berger wrote: >> >>> Sorry, >>> I obviously did not state clearly what the problem is (thanks Daniel): >>> >>> 1. minor problem: cor() does return different types of variables for >>> methods "kendall" and pearson (matrix vs. scalar

Re: [R] strange behavior of cor() with pairwise.complete.obs

2008-01-03 Thread Hilmar Berger
Hi all, thanks for your help, I just found out that the code for cor() in the latest development snapshot of R (02/Jan/2008) does fix my problem. Regards, Hilmar Hilmar Berger schrieb: > Sorry, > > I obviously did not state clearly what the problem is (thanks Daniel): > > 1. minor problem:

Re: [R] strange behavior of cor() with pairwise.complete.obs

2008-01-03 Thread Hilmar Berger
Peter Dalgaard schrieb: > Hilmar Berger wrote: >> Sorry, >> I obviously did not state clearly what the problem is (thanks Daniel): >> >> 1. minor problem: cor() does return different types of variables for >> methods "kendall" and pearson (matrix vs. scalar) when >> pairwise.complete.obs is sele

Re: [R] strange behavior of cor() with pairwise.complete.obs

2008-01-02 Thread Daniel Malter
Im Auftrag von Peter Dalgaard Gesendet: Wednesday, January 02, 2008 6:22 PM An: Hilmar Berger Cc: r-help@r-project.org Betreff: Re: [R] strange behavior of cor() with pairwise.complete.obs Hilmar Berger wrote: > Sorry, > > I obviously did not state clearly what the problem is (thanks Daniel): >

Re: [R] strange behavior of cor() with pairwise.complete.obs

2008-01-02 Thread Peter Dalgaard
Hilmar Berger wrote: > Sorry, > > I obviously did not state clearly what the problem is (thanks Daniel): > > 1. minor problem: cor() does return different types of variables for > methods "kendall" and pearson (matrix vs. scalar) when > pairwise.complete.obs is selected. > > 2. major problem: co

Re: [R] strange behavior of cor() with pairwise.complete.obs

2008-01-02 Thread Hilmar Berger
Sorry, I obviously did not state clearly what the problem is (thanks Daniel): 1. minor problem: cor() does return different types of variables for methods "kendall" and pearson (matrix vs. scalar) when pairwise.complete.obs is selected. 2. major problem: cor() does return with an error if bot

Re: [R] strange behavior of cor() with pairwise.complete.obs

2008-01-02 Thread Daniel Malter
on't, I don't know. Cheers, Daniel - cuncta stricte discussurus - -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Hilmar Berger Gesendet: Wednesday, January 02, 2008 12:39 PM An: [EMAIL PR

[R] strange behavior of cor() with pairwise.complete.obs

2008-01-02 Thread Hilmar Berger
Hi all, I'm not quite sure if this is a feature or a bug or if I just fail to understand the documentation: If I use cor() with pairwise.complete.obs and method=pearson, the result is a scalar: ->cor(c(1,2,3),c(3,4,6),use="pairwise.complete.obs",method="pearson") [1] 0.9819805 The documentat