From ripley at stats.ox.ac.uk  Wed Oct  5 14:02:12 2005
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Wed, 5 Oct 2005 13:02:12 +0100 (BST)
Subject: [Rd] R crashes for large formulas in lm() (PR#8180)
In-Reply-To: <20051005111311.018711DD7C@slim.kubism.ku.dk>
References: <20051005111311.018711DD7C@slim.kubism.ku.dk>
Message-ID: <Pine.LNX.4.61.0510051256110.24974@gannet.stats>

On Wed, 5 Oct 2005 hallgeir.grinde at elkem.no wrote:

> Full_Name: Hallgeir Grinde
> Version: 2.1.1
> OS: Windows XP
> Submission from: (NULL) (144.127.1.1)
>
>
> While using lm(y~(x*z*c*...*v)^2) R crashes/closes if the numbers of variables
> are at least 8.

OK, let's try to reproduce that:

> x1 <- runif(1000)
> x2 <- runif(1000)
> x3 <- runif(1000)
> x4 <- runif(1000)
> x5 <- runif(1000)
> x6 <- runif(1000)
> x7 <- runif(1000)
> x8 <- runif(1000)
> y <- rnorm(1000)
> fit <- lm(y~(x1*x2*x3*x4*x5*x6*x7*x8)^2)

No crash, a quite reasonable fit.

Can we please have a reproducible example, as we do ask?

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



[Rd] R crashes for large formulas in lm() (PR#8180)
Prof Brian Ripley