通过添加" age"
,可以从文档示例中修改以下示例d.coxph <- (survfit(Surv(time, status) ~ sex+age, data = lung))
autoplot(d.coxph)
我会收到以下错误:
levels<-
中的错误(*tmp*
,值= if(nl == nL)as.character(标签)其他paste0(标签,: 因子水平[41]重复输入一个帧编号,或输入0以退出
1:autoplot(d.coxph)&gt;
levels<-
(*tmp*
中的错误,值= if(nl == nL)as.character(标签),否则为paste0(标签,: 因子水平[41]重复输入一个帧编号,或输入0以退出
1:autoplot(d.coxph) 2:autoplot.survfit(d.coxph) 3:fortify(object,surv.connect = surv.connect,fun = fun) 4:fortify.survfit(object,surv.connect = surv.connect,fun = fun) 5:因子(rep(groupIDs,model $ strata),levels = groupIDs)
2:autoplot.survfit(d.coxph) 3:fortify(object,surv.connect = surv.connect,fun = fun) 4:fortify.survfit(object,surv.connect = surv.connect,fun = fun) 5:因子(rep(groupIDs,model $ strata),levels = groupIDs)
答案 0 :(得分:3)