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

2008-05-09 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 like to

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: r-help@r-project.org 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

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 Kenn Konstabel
Message - From: Monica Pisica [EMAIL PROTECTED] To: r-help@r-project.org 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 a matrix with m rows and n columns and get the results in a list

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

2008-05-09 Thread Monica Pisica
/336899Fax: +32/(0)16/337015Web: http://med.kuleuven.be/biostat/ http://www.student.kuleuven.be/~m0390867/dimitris.htm- Original Message - From: Monica Pisica [EMAIL PROTECTED]To: r-help@r-project.orgSent: Thursday, May 08, 2008 9:05 PMSubject: [R] applying cor.test to a (m, n) matrix

[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.