plotExacerbations {accept}R Documentation

Creates bar graph comparing no treatment with azithromycin treatment

Description

Creates bar graph comparing no treatment with azithromycin treatment

Usage

plotExacerbations(
  patientResults,
  type = "rate",
  interval = "CI",
  colors = c("#007bff", "rgb(204,204,204)")
)

Arguments

patientResults

patient results vector, produced by predictAccept.

type

string: either "probability" or "rate"

interval

string: either "CI" or "PI" PI = Predicted Interval CI = Confidence Interval

colors

vector: a vector of colors to be used in the graph must be length 2 can use hexadecimal, rgb, or R color codes

Value

a bar graph

Examples

results <- predictACCEPT(samplePatients[1,], random_distribution_iteration = 5000)
plotExacerbations(results)

[Package accept version 0.7.1 Index]