如何解决在 r 中加载 apricom 时 mfp() 出错
我有一个需要 mfp
和 apricom
包的脚本。我需要使用 mfp()
中的 mfp
函数。
但是,当加载 apricom
时,我收到错误消息。运行 library(apricom)
时没有冲突消息(例如 The following objects are masked...
)。
为什么会这样?加载 mfp()
时如何让 apricom
工作?
library(mfp)
#> Loading required package: survival
data(GBSG)
# this works fine:
model<-mfp(cens ~ age,family = binomial(link = "logit"),data = GBSG)
library(apricom)
# now I get an error running the same code:
model<-mfp(cens ~ age,data = GBSG)
#> Error in strsplit(as.character(fit$terms),"~")[[2]]: subscript out of bounds
由 reprex package (v1.0.0) 于 2021 年 3 月 4 日创建
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。