plot_cutoff {BayesianReasoning}R Documentation

plot_cutoff Create a cutoff plot, showing the healthy and sick distributions, and the consequences of different cutoff points

Description

plot_cutoff Create a cutoff plot, showing the healthy and sick distributions, and the consequences of different cutoff points

Usage

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
)

Arguments

prevalence

prevalence of the disease

cutoff_point

cutoff point to use

mean_sick

mean for the sick people distribution

mean_healthy

mean for the healthy people distribution

sd_sick

sd for the sick people distribution

sd_healthy

sd for the healthy people distribution

n_people

number of people to use

add_table

FALSE/TRUE: add gt table with Sensitivity, Specificity, etc.

output_filename

NULL. If a filename, will save the plot

Value

A list with plots and table

Examples

## Not run: 
plot_cutoff(prevalence = 0.2)

## End(Not run)

[Package BayesianReasoning version 0.4.2 Index]