[R] help: cannot allocate vector of length 828310236

From: T Mu <muster_at_gmail.com>
Date: Tue 15 Aug 2006 - 13:36:25 EST

Hi all,

I was trying a probit regression using polr() and got this message,

Error in model.matrix.default(Terms, m, contrasts) :

        cannot allocate vector of length 828310236

The data is about 20M (a few days ago I asked a question about large file, thank you for responses, then I use MS Access to select those columns I would use).

R is 2.3.1, Windows XP, 512M Ram.

I am going to read some help on memory use in R, but hope anybody can give me some quick hints.

Is it because iphysical memory runs out, or some other things could be wrong with data or polr()?
Does R use virtual memory? If so, what options can I set? If not, can R deal with really huge data (except adding RAM according to data size)? If this is the case, it is too bad that I have to tell my boss to go back to SAS. Now it is not a speed issue yet.

Thank you.

        [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch 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. Received on Tue Aug 15 13:43:51 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 15 Aug 2006 - 18:22:33 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.