Skip to contents

Simulation

Branching processes

Simulate branching processes

chain_sim()
Simulate transmission chains using a branching process
chain_sim_susc()
Simulate a single chain using a branching process while accounting for depletion of susceptibles.

Likelihood calculations

Estimate likelihoods

chain_ll()
Calculate the log-likelihood for the outcome of a branching process

Reparametrized distributions

dborel()
Density of the Borel distribution
rborel()
Random number generator from the Borel distribution
rnbinom_mean_disp()
Negative binomial random numbers parametrized in terms of mean and dispersion coefficient

Miscellaneous

Data

covid19_sa
COVID-19 Data Repository for South Africa