net_intervention_avoided: Add Net Interventions Avoided

Description Usage Arguments Value Author(s) See Also Examples

View source: R/net_intervention_avoided.R

Description

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

Usage

1
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

Author(s)

Daniel D Sjoberg

See Also

dca(), standardized_net_benefit(), plot.dca(), as_tibble.dca()

Examples

1
2
3
4
5
dca(cancer ~ cancerpredmarker, data = df_binary) %>%
  net_intervention_avoided()

dca(Surv(ttcancer, cancer) ~ cancerpredmarker, data = df_surv, time = 1) %>%
  net_intervention_avoided()

dcurves documentation built on July 20, 2021, 9:08 a.m.