我正在尝试为多个多项逻辑回归模型创建一个AICc表。但是,当我尝试运行该行时:
aictab(cand.set = Cand.mod, modnames = Modnames)
我收到错误消息:
Error in print(aictab(cand.set = Cand.models, modnames = Modnames)) :
could not find function "aictab"
我使用的脚本是:
install.packages("AICcmodavg")
dd$reaction2 <- relevel(dd$reaction, ref="nr")
Cand.mod<-list()
Cand.mod[[1]]<-multinom(reaction2~ camera + light, data = dd)
Cand.mod[[2]]<-multinom(reaction2~ camera + gender, data = dd)
Modnames <-c("fm1", "fm2", "fm3")
aictab(cand.set = Cand.mod, modnames = Modnames)
evidence(aictab(cand.set = Cand.mod, modnames = Modnames))
confset(cand.set = Cand.mod, modnames = Modnames, method= "raw")
我只是想知道是否有人有任何想法我错了?
非常感谢!!