R package survivalROC error
0
0
Entering edit mode
4.8 years ago
BioLite ▴ 20

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 • 1.4k views
ADD COMMENT
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

Thanks to the manager. I have corrected my post.

ADD REPLY

Login before adding your answer.

Traffic: 2007 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6