knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
diagnosticSummary
is designed to quickly create diagnostic summaries and reports for binary classification data.
You can install the development version from GitHub with:
# install.packages("devtools") devtools::install_github("overdodactyl/diagnosticSummary")
library(diagnosticSummary) # Load sample data data("dx_heart_failure") head(dx_heart_failure) # Create dx object dx_obj <- dx( data = dx_heart_failure, true_varname = "truth", pred_varname = "predicted", outcome_label = "Heart Attack", threshold_range = c(.1,.2,.3), setthreshold = .3, doboot = TRUE, bootreps = 1000, grouping_variables = c("AgeGroup", "Sex", "AgeSex") )
summary(dx_obj, variable = "Overall", show_var = F, show_label = F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.