Re: [R] Working with large matrix

2009-09-12 Thread Jonathan Baron
Another possible interpretation is that each row contains several vectors, possibly laid end to end. For example, if the row J were length 30 (which it isn't), the first 10 might be Y, the next 10 X1, and the next N2. The function might be lm(J[1:10] ~ J[11:20] + J[21:30]). If this is what is go

Re: [R] Working with large matrix

2009-09-12 Thread Douglas Bates
On Fri, Sep 11, 2009 at 12:15 PM, A Ezhil wrote: > Dear All, > I have large matrix (46000 x 11250). I would like to do the linear regression > for each row. I wrote a simple function that has lm() and used > apply(mat,1,func). The issue is that it takes ages to load the file and also > to fini

Re: [R] Working with large matrix

2009-09-11 Thread A Ezhil
calculation fast? If you have any experience with large matrices, could you please share it with me? Thanks again, Ezhil --- On Fri, 9/11/09, Steve Lianoglou wrote: > From: Steve Lianoglou > Subject: Re: [R] Working with large matrix > To: "A Ezhil" > Cc: R-help@r-proj

Re: [R] Working with large matrix

2009-09-11 Thread Steve Lianoglou
Hi, On Sep 11, 2009, at 1:15 PM, A Ezhil wrote: Dear All, I have large matrix (46000 x 11250). I would like to do the linear regression for each row. I wrote a simple function that has lm() and used apply(mat,1,func). The issue is that it takes ages to load the file and also to finish th