[R] Memory issues..

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Nov 10 17:35:14 CET 2003


Have you done what the message said?

On Mon, 10 Nov 2003, Rodrigo Abt wrote:

> Hi dear R-listers, I'm trying to fit a 3-level model using lme in R. My
> sample size is about 2965 and 3 factors:
> 
> year (5 levels), ssize (4 levels), condition (2 levels).
> 
> When I issue the following command:
> 
> >
> lme(var~year*ssize*condition,random=~ssize+condition|subject,data=smp,method
> ="ML")
> 
> I got the following error:
> 
> Error in logLik.lmeStructInt(lmeSt, lmePars) :
>         Calloc could not allocate (65230 of 8) memory
> In addition: Warning message:
> Reached total allocation of 120Mb: see help(memory.size)
> 
> I'm currently using a Win2000 machine with 128Mb RAM and a 1.2 Gb processor.
> My version of R is 1.7.1.

You probably need more memory, but you could try following the advice in 
the help page pointed to.  If you increase the memory allocation R will 
continue to run, albeit slowly.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list