Skip to content
Back to formatted view

Raw Message

Message-ID: <C0772C7568B5374481D2F8A880E9BBDF06A650CAD4@DC1EX07CMS.air.org>
Date: 2011-01-10T22:58:33Z
From: Doran, Harold
Subject: Memory Needed for Regression
In-Reply-To: <092b3e55509af1a36630e36a5f1fb8bb@www.avvantamail.com>

The size of the model matrix X can be estimated approximately. It depends on the kind of data in the model matrix. For instance, floating points require more memory than integers (which I think is 8 bits per cell). If your model matrix is sparse, you can use some hidden functions in the matrix package for sparse model matrices and save a lot of memory in doing so, though I am not certain how to estimate memory requirements under such conditions.  
________________________________________
From: r-help-bounces at r-project.org [r-help-bounces at r-project.org] On Behalf Of efreeman [efreeman at blarg.net]
Sent: Monday, January 10, 2011 5:28 PM
To: r-help at r-project.org
Subject: [R] Memory Needed for Regression

I'm looking for a formula for memory usage in standard regression; that
is, if I have X rows with Y predictors, how much memory is needed? I'm
speccing out a system, and I'd like to be able to get enough memory
that we can do some fairly large regressions.

==Ed Freeman


        [[alternative HTML version deleted]]

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.