Re: [R] Correlation with p value

2013-02-13 Thread David L Carlson
I Velez'; 'Nico Met' > Cc: 'R help' > Subject: Re: [R] Correlation with p value > > You can use package Hmisc. Assuming your data.frame is called "dta": > > > library(Hmisc) > > dta2 <- do.call(cbind, split(dta[,2], dta$Name)) &

Re: [R] Correlation with p value

2013-02-13 Thread arun
Hi, #data: dat1 mat1<-matrix(dat1[,2],ncol=3,nrow=7) colnames(mat1)<-unique(dat1[,1]) library(Hmisc) rcorr(mat1)$P  #     TTK   CTJ   PKR #TTK    NA 0.0151874 0.6277163 #CTJ 0.0151874    NA 0.5214368 #PKR 0.6277163 0.5214368    NA A.K. - Original Message - From:

Re: [R] Correlation with p value

2013-02-13 Thread David L Carlson
org] On Behalf Of Jorge I Velez > Sent: Wednesday, February 13, 2013 5:22 AM > To: Nico Met > Cc: R help > Subject: Re: [R] Correlation with p value > > Nico, > > Check https://stat.ethz.ch/pipermail/r-help/2008-May/161725.html for > some > alternatives. You might ha

Re: [R] Correlation with p value

2013-02-13 Thread Jorge I Velez
Nico, Check https://stat.ethz.ch/pipermail/r-help/2008-May/161725.html for some alternatives. You might have to change the structure of your data, though. HTH, Jorge.- On Wed, Feb 13, 2013 at 10:13 PM, Nico Met <> wrote: > Dear all, > > I have a data (bellow) and I want to make a correlation