> cal <- calibrate(fit, method = "boot", B = 1000) Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘calibrate’ for signature ‘"lrm"
最开始以为是没有library(rms),后来发现已经成功library了,另外的R包在加载的时候将已有的calibrate函数进行了屏蔽,需要强制给定r包
cal <- rms::calibrate(fit, method = "boot", B = 1000)
即可运行