Skip to content

stack overflow using step()

2 messages · stich@uni-hohenheim.de, Brian Ripley

#
Hi,
I'm using step() for forward regression with 680 main effects and the
correspomding 230860 interactions. However, the calculation is stopped with the
message:
Error: protect(): stack overflow

How can I specify the maximum size of the pointer protection stack when running
R not from command line but in an emacs-subwindow?

How can I perform these calculations when the maximum value accepted is 100000?
Thanks,
Benjamin
#
Please note the message is about the protect stack, and not the `stack'. 
The message you quote did not come from a current version of R (and you 
have not told us what version you are using, as asked in the posting 
guide).
On Mon, 17 Oct 2005 stich at uni-hohenheim.de wrote:

            
Hmm.  How many data points?  step() only tries 1000 steps by default.
Ask ESS questions on the ESS list please, as the FAQ does ask you.
which is a lot larger than the default value (which depends on your 
unstated R version).

Without a lot more information it is unclear why the protection stack is 
being used up.  Please show us the last few lines of the output.