Re: [R] Working with large matrix

2009-09-12 Thread Douglas Bates
On Fri, Sep 11, 2009 at 12:15 PM, A Ezhil ezhi...@yahoo.com 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

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

[R] Working with large matrix

2009-09-11 Thread A Ezhil
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 the lm. I am using LINUX 64 bit with 32G mem. Is there

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

Re: [R] Working with large matrix

2009-09-11 Thread A Ezhil
the 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 mailinglist.honey...@gmail.com wrote: From: Steve Lianoglou mailinglist.honey...@gmail.com Subject: Re: [R] Working with large matrix