plot_risk: Function for plotting risk of case escaping active monitoring

View source: R/plot_risk.R

plot_riskR Documentation

Function for plotting risk of case escaping active monitoring

Description

Function for plotting risk of case escaping active monitoring

Usage

plot_risk(pstr_data, u = 7, phi = c(1e-04, 0.001, 0.01),
  durations = 5:25, return_plot = FALSE)

Arguments

pstr_data

a data object with posterior distributions of gamma parameters (must have shape and scale column)

u

numeric value or vector of assumed duration(s) of time between exposure and monitoring

phi

probability a case becomes symptomatic

durations

durations of active monitoring to plot

return_data

logical, whether or not to return the data used for plotting

Value

if return_plot is specified, it returns the grob

Examples

plot_risk(ebola_gamma_pstr, u=c(5, 10))

reichlab/activemonitr documentation built on April 9, 2024, 2:17 p.m.