[R] Memory Problem

From: Georgios Marentakis <marentos_at_gmail.com>
Date: Fri, 21 Mar 2008 11:49:32 -0400


Dear all,
I am having a memory problem when analyzing a rather large data set with nested factors in R.
The model is of the form X~A*B*(C/D/F) A,B,C,D,F being the independent variables some of which are nested.
The problem occurs when using aov but also when using glm or lme. In particular I get the following response,

Error: cannot allocate vector of size 1.6 Gb R(311,0xa000d000) malloc: *** vm_allocate(size=1733365760) failed (error code=3)

R(311,0xa000d000) malloc: *** error: can't allocate region
R(311,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
R(311,0xa000d000) malloc: *** vm_allocate(size=1733365760) failed (error
code=3)
R(311,0xa000d000) malloc: *** error: can't allocate region R(311,0xa000d000) malloc: *** set a breakpoint in szone_error to debug

This is on an Intel Mac with 2 GBytes of RAM running MacOS X vs. 10.4.11 The very same result appears on an 8 core Intel Mac with 6 Gbytes of RAM and on a Linux Box with 2 GBytes of RAM.
Is there a way to bypass this and let R allocate the necessary memory? Is this a system problem? Would it be resolved in a mainframe for example?

thank you very much for your time,
georgios

        [[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. Received on Fri 21 Mar 2008 - 15:52:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 21 Mar 2008 - 17:30:22 GMT.

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

list of date sections of archive