Convert DCA Object to tibble
# S3 method for dca
as_tibble(x, ...)
dca object created with dca()
not used
a tibble
dca(cancer ~ cancerpredmarker, data = df_binary) %>%
as_tibble()
#> # A tibble: 300 × 9
#> variable label n threshold pos_rate tp_rate fp_rate harm net_benefit
#> <chr> <fct> <int> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 all Treat All 750 0 0.14 0.14 0.86 0 0.14
#> 2 all Treat All 750 0.01 0.14 0.14 0.86 0 0.131
#> 3 all Treat All 750 0.02 0.14 0.14 0.86 0 0.122
#> 4 all Treat All 750 0.03 0.14 0.14 0.86 0 0.113
#> 5 all Treat All 750 0.04 0.14 0.14 0.86 0 0.104
#> 6 all Treat All 750 0.05 0.14 0.14 0.86 0 0.0947
#> 7 all Treat All 750 0.06 0.14 0.14 0.86 0 0.0851
#> 8 all Treat All 750 0.07 0.14 0.14 0.86 0 0.0753
#> 9 all Treat All 750 0.08 0.14 0.14 0.86 0 0.0652
#> 10 all Treat All 750 0.09 0.14 0.14 0.86 0 0.0549
#> # … with 290 more rows