Model |
|
---|---|
Run a single instance of the branching process model |
|
Set up initial cases for branching process |
|
Move forward one generation in the branching process |
|
Helper functions |
|
Probability distribution manipulation |
|
Create partial function to sample from gamma distributions |
|
Samples the serial interval for given incubation period samples |
|
Loop wrappers for scenario modelling |
|
Sweep across parameters |
|
Run a specified number of simulations with identical parameters |
|
Post-processing |
|
Calculate whether outbreaks went extinct or not |
|
Calculate proportion of runs that have controlled outbreak |