From p.dalgaard at biostat.ku.dk  Wed Oct  5 14:01:50 2005
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: 05 Oct 2005 14:01:50 +0200
Subject: [Rd] R crashes for large formulas in lm() (PR#8180)
In-Reply-To: <50214.194.57.165.22.1128511281.squirrel@webmail.lyon.inserm.fr>
References: <50214.194.57.165.22.1128511281.squirrel@webmail.lyon.inserm.fr>
Message-ID: <x27jcsnpe9.fsf@viggo.kubism.ku.dk>

"Ken Knoblauch" <knoblauch at lyon.inserm.fr> writes:

> Oops, sorry.  I didn't notice the ^2...
> Nevermind.

You could still have a point, but with 255^2 terms (all but 255 of
which will be redundant since x^2 == x:x == x in modeling language).
Presumably someone thought that noone in their right mind would
specify 65000 terms...


> ________________
> Have you considered that 8 variables will give you
> sum(choose(8,1:8))
> [1] 255
> terms.
> That's a suspicious number.  Have you checked whether there is a limit in
> the code?
> 
> -------------------------
> 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.
> -- 
> Ken Knoblauch
> Inserm U371
> Cerveau et Vision
> Dept. of Cognitive Neuroscience
> 18 avenue du Doyen L?pine
> 69500 Bron
> France
> tel: +33 (0)4 72 91 34 77
> fax: +33 (0)4 72 91 34 61
> portable: +33 (0)6 84 10 64 10
> http://www.lyon.inserm.fr/371/
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 

-- 
   O__  ---- Peter Dalgaard             ?ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



[Rd] R crashes for large formulas in lm() (PR#8180)
Peter Dalgaard