[R] nomogram function error

Annalisa VanderWyden annievanderwyden at yahoo.com
Thu Oct 26 18:42:52 CEST 2017


Hi R-help,

 

I have fit a cox ph model to my data, but have beenreceiving an error when trying to fit a model to the nomogram. Here is the codeand corresponding error:

 

 

>nomogramCF = nomogram(cph_age6_40avp4, 

+                    lp.at= seq(-10,10,by =0.5),lp = TRUE,

+                      

+                      funlabel="5year survival",

+                      fun=surv5.CFdata5,fun.at= c(0.01,seq(0.1,0.9,by=0.2),0.99))

Error inapprox(fu[s], xseq[s], fat, ties = mean) : 

  needat least two non-NA values to interpolate

 

 

I have fit similar nomograms based on cox ph models usingsimilar code, so I’m not sure what I’m doing wrong this time.

 

I heard there might be some an issue because of a softwareupdate?

 

Thanks,

Annie


	[[alternative HTML version deleted]]



More information about the R-help mailing list