我每次运行使用R中的生存包的Cox模型时都会收到以下错误。此错误在最近几天内出现。为了说明这个错误,我使用它在https://stat.ethz.ch/R-manual/R-devel/library/survival/html/coxph.html给出一个标准的例子命令:R coxph()错误:找不到对象'Ccoxmart'
# Fit a stratified model, clustered on patients
library(survival)
bladder1 <- bladder[bladder$enum < 5, ]
coxph(Surv(stop, event) ~ (rx + size + number) * strata(enum) +
cluster(id), bladder1)
我得到的错误如下:
Error in fitter(X, Y, strats, offset, init, control, weights = weights, :
object 'Ccoxmart' not found
我使用最新的R版本3.4的。 0(2017-04-21) - “你愚蠢的黑暗”]。
我已经试过查阅R的生存软件包手册并在互联网上进行了研究。我很感谢您推荐的任何资源或解决方案。
所以你正在使用过时的版本。包中。 –