View source: R/create_summary_report.R
create_summary_report | R Documentation |
Create a summary report
create_summary_report(
probs,
reals,
interactive = TRUE,
output_file = "summary_report.html",
output_dir = getwd()
)
probs |
a list of vectors of estimated probabilities (one for each model or one for each population) |
reals |
a list of vectors of binary outcomes (one for each population) |
interactive |
whether the plot should be interactive plots |
output_file |
The name of the output file |
output_dir |
The output directory for the rendered |
## Not run:
create_summary_report(
probs = list(example_dat$estimated_probabilities),
reals = list(example_dat$outcome)
)
create_summary_report(
probs = list(
"First Model" = example_dat$estimated_probabilities,
"Second Model" = example_dat$random_guess
),
reals = list(example_dat$outcome)
)
create_summary_report(
probs = list(
"train" = example_dat %>%
dplyr::filter(type_of_set == "train") %>%
dplyr::pull(estimated_probabilities),
"test" = example_dat %>% dplyr::filter(type_of_set == "test") %>%
dplyr::pull(estimated_probabilities)
),
reals = list(
"train" = example_dat %>% dplyr::filter(type_of_set == "train") %>%
dplyr::pull(outcome),
"test" = example_dat %>% dplyr::filter(type_of_set == "test") %>%
dplyr::pull(outcome)
)
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.