[R] excluding models during dredge and model averaging in MuMIn

Kamil Bartoń kamil.barton at uni-wuerzburg.de
Tue Sep 6 15:14:38 CEST 2011


 > dredge(x, subset = !(X1 & (X2 | X3)) & !(X2 & X3) & !(X1 & X3))
see > help("Logic", "base")


Dnia 2011-08-26 12:00, r-help-request w r-project.org pisze:
> ------------------------------
>
> Message: 157
> Date: Fri, 26 Aug 2011 14:53:00 +0900
> From: Andrew MacIntosh<andyjmac w gmail.com>
> To:R-help w r-project.org
> Subject: [R] excluding models during dredge and model averaging in
> 	MuMIn
> Message-ID:
> 	<CAPSAZ9RirdzXyn22JySmbUNV7DVdWZBh44StAb7wJcDtTE_91w w mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Dear R Users,
>
> I am using the package "MuMIn" to sort through models, with the goal
> of estimating parameters through model averaging of the candidate set.
> I have been using the dredge function to build all possible models
> based on my starting point (hypothetical global model). I see that
> there is a simple way to control which models are excluded from this
> set...
>
> # exclude models containing both X1 and X2
>> >dredge(x, subset = !(X1&  X2))
> However, I would like to add to this and exclude 4 different
> combinations of predictors (i.e. X1&X2, X1&X3, X2&X3, X1&X2&X3).
>
> I would very much appreciate it if somebody had any ideas about how to
> tackle this. Also,
>
> Cheers,
> Andrew



More information about the R-help mailing list