Re: [R] correlation help

2009-09-21 Thread Liviu Andronic
On 9/21/09, William Revelle wrote: > correlations) use either the rcorr function in the Hmisc package or the > corr.test function in the psych package. > Also, check the graphical interfaces in Rcmdr and Deducer. Liviu __ R-help@r-project.org mailing l

Re: [R] correlation help

2009-09-21 Thread John Kane
library(psych) corr.test(d6) ? --- On Sun, 9/20/09, Adrian Johnson wrote: > From: Adrian Johnson > Subject: Re: [R] correlation help > To: r-help@r-project.org > Received: Sunday, September 20, 2009, 6:19 PM > thank you john. > however, I am finding it difficult to auto

Re: [R] correlation help

2009-09-20 Thread William Revelle
ne wrote: ?cor ?cor.test --- On Sun, 9/20/09, Adrian Johnson wrote: From: Adrian Johnson Subject: [R] correlation help To: r-help@r-project.org Received: Sunday, September 20, 2009, 5:00 PM Dear group, I have a matrix like the following: Name Sample1 sample2sample3 sampl

Re: [R] correlation help

2009-09-20 Thread Jorge Ivan Velez
Adrian, See http://www.nabble.com/Re:-applying-cor.test-to-a-(m,-n)-matrix---SUMMARY-to17150239.html#a17150239 HTH, Jorge On Sun, Sep 20, 2009 at 5:00 PM, Adrian Johnson wrote: > Dear group, > >

Re: [R] correlation help

2009-09-20 Thread Adrian Johnson
> + return(x)} > Error: no function to return from, jumping to top level > > > I appreciate your help. > > thank you. > Adrian > > > > > > > On Sun, Sep 20, 2009 at 5:13 PM, John Kane wrote: >> ?cor >> ?cor.test >> >> --- On Sun, 9/20/09, A

Re: [R] correlation help

2009-09-20 Thread John Kane
?cor ?cor.test --- On Sun, 9/20/09, Adrian Johnson wrote: > From: Adrian Johnson > Subject: [R] correlation help > To: r-help@r-project.org > Received: Sunday, September 20, 2009, 5:00 PM > Dear group, > > I have a matrix like the following: > > Name     Samp

[R] correlation help

2009-09-20 Thread Adrian Johnson
Dear group, I have a matrix like the following: Name Sample1sample2sample3 sample4 . sample(n) nm110.5 13.5 30 31 nm2 8 1134 29 nm3 9 10.3 27.8 35 nm(j) I w

Re: [R] Correlation Help

2008-06-23 Thread milton ruser
Hi Michael, May be you have NA on your dataset. x<-runif(20) y<-runif(20) cor(x,y) x[10]<-NA x cor(x,y) # SEE the error because NA cor(x,y, use = "pairwise.complete.obs") Good luck, miltinho brazil On 6/23/08, Tong, Michael <[EMAIL PROTECTED]> wrote: > > Hi, > > I have recently been usin

Re: [R] Correlation Help

2008-06-23 Thread stephen sefick
?cor you can't calculate a correlation on a missing data point. I think you need to use the argument use=pairwise.complete.obs in the cor call, but look at the function description it will tell you what you need to know (I think). Also, search the list-R nabble, Rsitsearch, or ... Good Luck Steph

[R] Correlation Help

2008-06-23 Thread Tong, Michael
Hi, I have recently been using the R program and encountered a recurring problem. I have been trying calculate the correlation of a 16 column table. Everytime I type in cor(test), where test is data that I uploaded into R using the read.table function, I get an error: Error in cor(test) : miss