Critical time defined as time in days until the effective R number reduces to one or below. Plot also gives 95 credible interval and attack rate for each location.

hom_plot_critical_times_by_location(
  posts,
  locations,
  num_cases,
  capacities,
  location_labels = NULL
)

Arguments

posts

Object after calling extract of stan model object of hierarchical model

locations

vector of location names

num_cases

vector of number of cases for each location

capacities

vector of sizes for each location

location_labels

tibble with columns `site` and `location`. Will be used to relabel numeric location to values in `site` column

Note

Naming convention throughout is snake case with prefix "hom_" to denote Hierarcical Outbreak Model