Model

outbreak_model()

Run a single instance of the branching process model

outbreak_setup()

Set up initial cases for branching process

outbreak_step()

Move forward one generation in the branching process

Helper functions

Probability distribution manipulation

dist_setup()

Create partial function to sample from gamma distributions

inf_fn()

Samples the serial interval for given incubation period samples

Loop wrappers for scenario modelling

parameter_sweep()

Sweep across parameters

scenario_sim()

Run a specified number of simulations with identical parameters

Post-processing

detect_extinct()

Calculate whether outbreaks went extinct or not

extinct_prob()

Calculate proportion of runs that have controlled outbreak