Skip to content
Prev 43408 / 398506 Next

memory problem for R

Have you read the posting guide for R-help?  

You need to tell us more: What hardware/OS/version of R are you using?

A rough calculation on storage needed:
[1] 320.4346

So you need 320+ MB of RAM just to store the data as a matrix of doubles in
R.  You need enough RAM to make a couple of copies of this.  If any of the
variables are factors, the requirement goes up even more, as the design
matrix used to fit the model will expand the factors into columns of
contrasts.  How much physical RAM do you have on the computer?

There are more efficient ways to fit the model to data of this size, but you
need to be able to at least fit the data into memory.  There have been a few
suggestions on R-help before on how to do this, so do search the archive.
(I believe Prof. Koenker had a web page describing how to do this with mySQL
and updating the X'X matrix by reading in data in chunks.)

Andy
------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments,...{{dropped}}