hom_plot_critical_times_by_location: Plot the critical time for each location

View source: R/plotting.R

hom_plot_critical_times_by_locationR Documentation

Plot the critical time for each location

Description

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.

Usage

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


sempwn/cr0eso documentation built on Aug. 21, 2022, 1:35 a.m.