Re: [R] robust method to obtain a correlation coeff?

2009-08-25 Thread Christian Meesters
Hi, Thanks for all the answers. Think with your help I got it now. It was apparently a typical newbie question. I'll try omitting NAs globally in this case. Thanks, Christian __ R-help@r-project.org mailing list

Re: [R] robust method to obtain a correlation coeff?

2009-08-25 Thread Martin Maechler
-bonn.de Subject: [R] robust method to obtain a correlation coeff? To: r-help@r-project.org Help r-help@r-project.org Received: Monday, August 24, 2009, 10:47 AM Hi, Being a R-newbie I am wondering how to calculate a correlation coefficient (preferably with an associated

[R] robust method to obtain a correlation coeff?

2009-08-24 Thread Christian Meesters
Hi, Being a R-newbie I am wondering how to calculate a correlation coefficient (preferably with an associated p-value) for data like: d[,1] [1] 25.5 25.3 25.1 NA 23.3 21.5 23.8 23.2 24.2 22.7 27.6 24.2 ... d[,2] [1] 0.0 11.1 0.0 NA 0.0 10.1 10.6 9.5 0.0 57.9 0.0 0.0 ...

Re: [R] robust method to obtain a correlation coeff?

2009-08-24 Thread Ted Harding
On 24-Aug-09 14:47:02, Christian Meesters wrote: Hi, Being a R-newbie I am wondering how to calculate a correlation coefficient (preferably with an associated p-value) for data like: d[,1] [1] 25.5 25.3 25.1 NA 23.3 21.5 23.8 23.2 24.2 22.7 27.6 24.2 ... d[,2] [1] 0.0 11.1 0.0 NA

Re: [R] robust method to obtain a correlation coeff?

2009-08-24 Thread David Winsemius
On Aug 24, 2009, at 11:26 AM, (Ted Harding) wrote: On 24-Aug-09 14:47:02, Christian Meesters wrote: Hi, Being a R-newbie I am wondering how to calculate a correlation coefficient (preferably with an associated p-value) for data like: d[,1] [1] 25.5 25.3 25.1 NA 23.3 21.5 23.8 23.2 24.2

Re: [R] robust method to obtain a correlation coeff?

2009-08-24 Thread David Winsemius
On Aug 24, 2009, at 11:38 AM, David Winsemius wrote: On Aug 24, 2009, at 11:26 AM, (Ted Harding) wrote: On 24-Aug-09 14:47:02, Christian Meesters wrote: Hi, Being a R-newbie I am wondering how to calculate a correlation coefficient (preferably with an associated p-value) for data like:

Re: [R] robust method to obtain a correlation coeff?

2009-08-24 Thread Bert Gunter
...@manchester.ac.uk Subject: Re: [R] robust method to obtain a correlation coeff? On Aug 24, 2009, at 11:38 AM, David Winsemius wrote: ... but I do not know what those certain situations really are. So there are some function that may be affected by settings of options(na.action) but I cannot tell

Re: [R] robust method to obtain a correlation coeff?

2009-08-24 Thread John Kane
I may be misunderstanding the question but would cor(d1, use='complete.obs') or some other variant of use help? --- On Mon, 8/24/09, Christian Meesters meest...@imbie.uni-bonn.de wrote: From: Christian Meesters meest...@imbie.uni-bonn.de Subject: [R] robust method to obtain a correlation coeff