ddsjoberg / dcurves

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

How to create a decision curve with multiple models? #2

Closed hhchang0210 closed 3 years ago

hhchang0210 commented 3 years ago

Hi, This is a great tool for creating a decision curve. But I don't know how to create a decision curve plot with multiple prediction models? like this picture: image

I read the example which only demonstrates a single model. Can anyone give a me hint? Thank you very much.

ddsjoberg commented 3 years ago

hi @hhchang0210 , thanks for the post!

The vignette has more examples in it, including how to include multiple predictions/models http://www.danieldsjoberg.com/dcurves/articles/dca.html

dca(cancer ~ famhistory + cancerpredmarker, 
    data = df_binary, 
    thresholds = seq(0, 0.35, by = 0.01)) %>%
  autoplot(smooth = TRUE)
#> Assuming '1' is [Event] and '0' is [non-Event]

image

FYI, this project is still under development. I expect it to go to CRAN in June.