Re: [R] apply lm() for all the columns of a matrix

2008-04-09 Thread Greg Snow
OTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Costas Douvis > Sent: Wednesday, April 09, 2008 8:54 AM > To: Dimitris Rizopoulos; r-help@r-project.org > Subject: Re: [R] apply lm() for all the columns of a matrix > > Here's a simplified example > > p<-1:80+rnorm(8

Re: [R] apply lm() for all the columns of a matrix

2008-04-09 Thread Costas Douvis
--- > From: "Costas Douvis" <[EMAIL PROTECTED]> > To: ; "Mark Leeds" <[EMAIL PROTECTED]>; > "Dimitris Rizopoulos" <[EMAIL PROTECTED]> > Cc: "Chuck Cleland" <[EMAIL PROTECTED]> > Sent: Wednesday, April 09, 2008 3:44 PM > Subject:

Re: [R] apply lm() for all the columns of a matrix

2008-04-09 Thread Dimitris Rizopoulos
oulos" <[EMAIL PROTECTED]> Cc: "Chuck Cleland" <[EMAIL PROTECTED]> Sent: Wednesday, April 09, 2008 3:44 PM Subject: Re: [R] apply lm() for all the columns of a matrix > Thank you all very much for replying. Of course you are absolutely > right > but unfortunately I

Re: [R] apply lm() for all the columns of a matrix

2008-04-09 Thread Costas Douvis
ijnenvoer 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 > > > - Original Message - > From: "Costas Douvis" <[EMAIL PROTECTED]>

Re: [R] apply lm() for all the columns of a matrix

2008-04-09 Thread Chuck Cleland
On 4/9/2008 6:55 AM, Costas Douvis wrote: > Hi all, > > My question is not really urgent. I can write a loop and solve the > problem. But I know that I'll be in a similar situation many more times so > it would be useful to find out the answer > > Is there a fast way to perform linear fit to all

Re: [R] apply lm() for all the columns of a matrix

2008-04-09 Thread Dimitris Rizopoulos
> To: Sent: Wednesday, April 09, 2008 12:55 PM Subject: [R] apply lm() for all the columns of a matrix > Hi all, > > My question is not really urgent. I can write a loop and solve the > problem. But I know that I'll be in a similar situation many more > times so >

[R] apply lm() for all the columns of a matrix

2008-04-09 Thread Costas Douvis
Hi all, My question is not really urgent. I can write a loop and solve the problem. But I know that I'll be in a similar situation many more times so it would be useful to find out the answer Is there a fast way to perform linear fit to all the columns of a matrix? (or in the one dimension of a m