Add the number of net interventions avoided to dca() object.

net_intervention_avoided(x, nper = 100)

Arguments

x

object of class 'dca' calculated with dca()

nper

Number to report net interventions per. Default is 100.

Value

'dca' object

See also

Author

Daniel D Sjoberg

Examples

dca(cancer ~ cancerpredmarker, data = df_binary) %>% net_intervention_avoided()
#> Printing with `plot(x, type = 'net_intervention_avoided', smooth = FALSE, show_ggplot_code = FALSE)`
dca(Surv(ttcancer, cancer) ~ cancerpredmarker, data = df_surv, time = 1) %>% net_intervention_avoided()
#> Printing with `plot(x, type = 'net_intervention_avoided', smooth = FALSE, show_ggplot_code = FALSE)`