0

我正在尝试为许多多项逻辑回归模型创建一个 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")  

我只是想知道是否有人对我哪里出错有任何想法?

非常感谢!!

4

0 回答 0