Skip to content
Back to formatted view

Raw Message

Message-ID: <alpine.LFD.2.00.0905191532540.5116@gannet.stats.ox.ac.uk>
Date: 2009-05-19T14:39:26Z
From: Brian Ripley
Subject: memory stack overflow
In-Reply-To: <COL110-W220F9C947B7EE5B995574EC35B0@phx.gbl>

That is very unusual, but the C stack can be increased under Windows 
by recompiling R (see src/gnuwin32/front-ends/Makefile). On most other 
OSes it is much easier, just adjust the setting via ulimit or limit in 
your shell.

But I suspect the problem is that your model is too complex. 
Incidentally, is your R current?  Stack usage in expanding models was 
reduced recently.

On Tue, 19 May 2009, Nora P?rez wrote:

> Dear colleagues,
>
> I am trying a glm.nb for the distribution of a plant species with 93 
> environmental variables. I execute the instruction and I get the 
> following message: "Error: C stack usage is too close to the limit".

Well, we don't know what you did (see the footer of this message) but 
if you mean 93 explanatory variables I hope you have tens of thousnads 
of cases and are just looking for a predictive model.

> How can I increase the memory of R?
>
> Your sincerely,
>
> Nora.
>
>
> _________________________________________________________________
>
>
> 	[[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.
>

-- 
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