大家好,我自己才接触R语言不久,现在在尝试做nomo图,但是一直有报错,代码如下:
dd<-datadist(train.plus.rad_score)
options(datadist="dd")
nom<-nomogram(crmodel, fun=list(function(x) surv(24, x)), lp=F, funlabel=c("6 month survival"), maxscale=10, fun.at=c(0.95, 0.85,0.75, 0.65, 0.5))
之后就有报错
Error in lims[[i]] : subscript out of bounds
In addition: Warning message:
In structure(limits, class = "data.frame", row.names = c("Low:effect", :
Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
Consider 'structure(list(), *)' instead.
请问各位有遇到这个问题吗?非常感谢!