Skip to content
Back to formatted view

Raw Message

Message-ID: <loom.20100519T155419-157@post.gmane.org>
Date: 2010-05-19T14:01:12Z
From: Ben Bolker
Subject: Generating all possible models from full model

Tal Galili <tal.galili <at> gmail.com> writes:
> 
> On Wed, May 19, 2010 at 7:38 AM, Tim Clark <mudiver1200 <at> yahoo.com> wrote:
> 
> > Is there a function that will allow me to run all model iterations if I
> > specify a full model? 
> >
> > 
> m1234567<-glm.convert(glm.nb(mantas~site*year+cosmonth+sinmonth+
>   coslunar+sinlunar+plankton,
>   data=mydata))
> >
> > and have R run all the other models.

  PS  I think it's slightly fewer than 2^8 (=256) models [I believe
MuMIn will respect marginality constraints, so models with the site:year
model will necessarily have site and year in them (I just tried an
example, with MuMIn::dredge, and it comes out to 160).  A lot better
than 7! = 5040