Question: R package survivalROC error
0
gravatar for BioLite
11 months ago by
BioLite20
BioLite20 wrote:

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 • 347 views
ADD COMMENTlink modified 11 months ago • written 11 months ago by BioLite20

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

ADD REPLYlink written 11 months ago by RamRS27k

Thanks to the manager. I have corrected my post.

ADD REPLYlink written 11 months ago by BioLite20
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1940 users visited in the last hour