请教大神们,Nomogram报错Error in approx(fu[s], xseq[s], fat, ties = mean) :
need at least two non-NA values to interpolate这种问题怎么解决呢?生存天数是按天计算的,最小的20天,最大的2790天,我的代码是
f2 <- cph(Surv(OS,OS.status)~A + B, data=clin_sig, x=T, y=T, surv = T, time.inc = 365)
surv <- Survival(f2)
nom <- nomogram(
f2, fun=list(function(x) surv(1*365, x), function(x) surv(2*365, x), function(x) surv(3*365, x)),