powered by
plot_cutoff Create a cutoff plot, showing the healthy and sick distributions, and the consequences of different cutoff points
plot_cutoff( prevalence = 0.1, cutoff_point = 30, mean_sick = 35, mean_healthy = 20, sd_sick = 3, sd_healthy = 5, n_people = 1e+05, add_table = FALSE, output_filename = NULL )
A list with plots and table
prevalence of the disease
cutoff point to use
mean for the sick people distribution
mean for the healthy people distribution
sd for the sick people distribution
sd for the healthy people distribution
number of people to use
FALSE/TRUE: add gt table with Sensitivity, Specificity, etc.
NULL. If a filename, will save the plot
if (FALSE) { plot_cutoff(prevalence = 0.2) }
Run the code above in your browser using DataLab