我想使用 dredge::MuMIn 来探索我的数据。如果I(GISalt^2)
变量和GISalt
.
例如,我想保留:
(GISalt * Forest) AND (I(GISalt^2) * Forest)
mod1 <- glm(MLE2017 ~ MLE200405 + (GISalt * Forest) + Scrub + I(GISalt^2) * Forest)
和
(GISalt * Forest) but NOT I(GISalt^2) * Forest)
mod2 <- glm(MLE2017 ~ MLE200405 + (GISalt * Forest) + Scrub)
并排除:
I(GISalt^2) * Forest) 但不是 GISalt * Forest) mod3 <- glm(MLE2017 ~ MLE200405 + Scrub + I(GISalt^2) * Forest)
包含所有变量的全局模型dredge()
globmod <- glm(MLE2017 ~ MLE200405 + GISalt * Forest + GISalt * Scrub
+ GISalt * Meadow + GISalt * RiverLgthm + GISalt * DailySunHrs +
I(GISalt^2) * Forest + I(GISalt^2) * Scrub + I(GISalt^2) * Meadow +
I(GISalt^2) * RiverLgthm + I(GISalt^2) * DailySunHrs,
data = GLMdata, family = x.quasipoisson(link = "log"))