我需要使用 QAIC 标准对候选模型进行排名。这是我尝试过的:
library(MuMIn)
model_global <- glm(vs ~ mpg + disp + wt, family = quasibinomial, mtcars)
model_1 <- glm(vs ~ mpg, family = quasibinomial, mtcars)
model_2 <- glm(vs ~ disp, family = quasibinomial, mtcars)
model_3 <- glm(vs ~ wt, family = quasibinomial, mtcars)
model_null <- glm(vs ~ 1, family = quasibinomial, mtcars)
mod.sel(model_global, model_1, model_2, model_3, model_null, rank="QAIC", chat=deviance(model_global) / df.residual(model_global))
这将返回此错误:
Error in formula.default(x) : invalid formula
如何使用 QAIC 对上述模型进行排名?