Re: [R] applying cor.test to a (m, n) matrix

2008-05-09 Thread Monica Pisica
.be/biostat/ http://www.student.kuleuven.be/~m0390867/dimitris.htm- Original Message - From: "Monica Pisica" <[EMAIL PROTECTED]>To: Sent: Thursday, May 08, 2008 9:05 PMSubject: [R] applying cor.test to a (m, n) matrix Hi everybody,I would like to apply cor.test to a matr

Re: [R] applying cor.test to a (m, n) matrix

2008-05-09 Thread Kenn Konstabel
Catholic University of Leuven > > Address: Kapucijnenvoer 35, Leuven, Belgium > Tel: +32/(0)16/336899 > Fax: +32/(0)16/337015 > Web: http://med.kuleuven.be/biostat/ > > http://www.student.kuleuven.be/~m0390867/dimitris.htm<http://www.student.kuleuven.be/%7Em0390867/dimitris.htm&g

Re: [R] applying cor.test to a (m, n) matrix - SUMMARY

2008-05-09 Thread Monica Pisica
Hi again, I've got few very good options from the list and since they were not posted to the list, I will provide a summary. Thank you very much to all who answered and I hope this summary will benefit others interested in solving similar problems like that. Yasir Kaheil re-wrote my original

Re: [R] applying cor.test to a (m, n) matrix

2008-05-09 Thread Dimitris Rizopoulos
/biostat/ http://www.student.kuleuven.be/~m0390867/dimitris.htm - Original Message - From: "Monica Pisica" <[EMAIL PROTECTED]> To: Sent: Thursday, May 08, 2008 9:05 PM Subject: [R] applying cor.test to a (m, n) matrix Hi everybody, I would like to apply cor.test to

Re: [R] applying cor.test to a (m, n) matrix

2008-05-08 Thread Yasir Kaheil
interesting request..I'm looking forward to the replies All I could come up with is putting it in two lines.. pr<-array(0,c(dim(x)[2],dim(x)[2])); for (i in 1:dim(x)[2]) for (j in 1:dim(x)[2]) pr[i,j]<-cor.test(x[,i],x[,j])$p.val; y Monica Pisica wrote: > > > Hi everybody, > > I would lik

[R] applying cor.test to a (m, n) matrix

2008-05-08 Thread Monica Pisica
Hi everybody, I would like to apply cor.test to a matrix with m rows and n columns and get the results in a list of matrices , one matrix for p.val, one for the statistic, one for the correlation and 2 for upper and lower confidence intervals, something analog with cor() applied to a matrix.