ddsjoberg / dcurves

Decision Curve Analysis
http://www.danieldsjoberg.com/dcurves/
Other
37 stars 14 forks source link

How to deal with the factor variable? #22

Closed XUEbaogai0101 closed 1 year ago

XUEbaogai0101 commented 1 year ago
dca(Surv(ttcancer, cancer) ~ risk_group, 
    data = df_surv, 
    time = 1,
    thresholds = seq(0, 0.50, by = 0.01),
    label = list(risk_group = "Prediction Model")) %>%
  plot(smooth = TRUE)

Error in `dplyr::between()`:
! Can't combine `x` <character> and `left` <integer>.
Run `rlang::last_trace()` to see where the error occurred.