Skip to content
Prev 241366 / 398500 Next

minimum AIC mixed model selection

SILVIA DIAZ FERNANDEZ <Silvia.Diaz <at> uclm.es> writes:
See the MuMIn package, and the "dredge" function.

e.g.:

library(MuMIn)
library(lme4)
example(lmer)
dredge(fm1)

 **however**: if you have 21 habitat variables and want
to consider all subsets of main effects only, you will have
something like 2^21 approx. 2 million models to consider.
Probably a bad idea.  I would strongly recommend that you
consider some sort of dimension reduction (e.g. take the
first few PCAs of the habitat predictors) first.