我每次運行使用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的生存軟件包手冊並在互聯網上進行了研究。我很感謝您推薦的任何資源或解決方案。
所以你正在使用過時的版本。包中。 –