|
楼主 |
发表于 2016-1-16 17:17:13
|
显示全部楼层
> library(foreign)
> lc<-read.spss('E:/skip.sav',use.value.labels=T,to.data.frame=T)
> library(survival)
> coxm<-coxph(Surv(DFS,DFSstatus)~Gender+Age+Excision+Tstatus+Pathology+ECE+N2stations+Skip+PRtotal+PRN2,data=lc)
> scoxm<-step(coxm)
> library(rms)
> dd<-datadist(lc);options(datadist="dd")
> surv<-survfit(scoxm)
> surv<-function(x)surv(3*12,lp=x)
>nomogram(scoxm,fun=list(surv),lp=F,funlabel=c('3-year survival'),maxscale=10,fun.at=c(0.95,0.9,0.85,0.8,0.75,0.7,0.6,0.5))
Error in lims[] : 下标出界***************
请问这个个“下标出界”怎么处理?谢谢。 |
|