This is a test version of Biostars. For the public version, visit https://www.biostars.org.
R package survivalROC error

Hi, company,

I am using package survivalROC to plot roc curv. But when I calculate true-positive and false-positive with function survivalROC, I get an error ,

Here are my analyzing code:

survivalROC(Stime = HR_ICGC_e_sample$time,
                      status = HR_ICGC_e_sample$status,
                      marker = HR_ICGC_e_sample$HR,
                      predict.time = 12,
                      span = 0.25*nobs_icgc^(-0.20))

and the reported error:

Error in if (n > 0) s0 <- s0 * (1 - d/n) : 
      missing value where TRUE/FALSE needed

Another, the same codes run well for any other groups of data. And I have checked, there aren't any NAs in this analysised data HR_ICGC_e_sample . I didn't find anything useful information aim to this error about survivalROC. Maybe there are somebody could help me? Any information would be appreciated.

Thanks in advance!

survivalroc

Please edit your post and add the exact command you're using.

Thanks to the manager. I have corrected my post.

0 answers

No answers yet.

Log in to answer this question.