Convert DCA Object to tibble

# S3 method for dca
as_tibble(x, ...)

Arguments

x

dca object created with dca()

...

not used

Value

a tibble

See also

Author

Daniel D Sjoberg

Examples

dca(cancer ~ cancerpredmarker, data = df_binary) %>% as_tibble()
#> # A tibble: 300 x 9 #> variable label harm threshold prevalence n tp_rate fp_rate net_benefit #> <chr> <fct> <dbl> <dbl> <dbl> <int> <dbl> <dbl> <dbl> #> 1 all Treat … 0 1e-9 0.14 750 0.14 0.86 0.140 #> 2 all Treat … 0 1e-2 0.14 750 0.14 0.86 0.131 #> 3 all Treat … 0 2e-2 0.14 750 0.14 0.86 0.122 #> 4 all Treat … 0 3e-2 0.14 750 0.14 0.86 0.113 #> 5 all Treat … 0 4e-2 0.14 750 0.14 0.86 0.104 #> 6 all Treat … 0 5e-2 0.14 750 0.14 0.86 0.0947 #> 7 all Treat … 0 6e-2 0.14 750 0.14 0.86 0.0851 #> 8 all Treat … 0 7e-2 0.14 750 0.14 0.86 0.0753 #> 9 all Treat … 0 8e-2 0.14 750 0.14 0.86 0.0652 #> 10 all Treat … 0 9e-2 0.14 750 0.14 0.86 0.0549 #> # … with 290 more rows