R/as_tibble.R

Defines functions as_tibble.dca

Documented in as_tibble.dca

#' Convert DCA Object to tibble
#'
#' @param x dca object created with `dca()`
#' @param ... not used
#'
#' @return a tibble
#' @export
#' @author Daniel D Sjoberg
#' @seealso [`dca()`], [`net_intervention_avoided()`], [`standardized_net_benefit()`], [`plot.dca()`]
#'
#' @examples
#' dca(cancer ~ cancerpredmarker, data = df_binary) %>%
#'   as_tibble()
as_tibble.dca <- function(x, ...) {
  x$dca
}

Try the dcurves package in your browser

Any scripts or data that you put into this service are public.

dcurves documentation built on Dec. 28, 2022, 1:07 a.m.