Basic reproduction number function from transmission parameters or a next-generation matrix
R(beta, gamma, K) = R_0
Maps the transmission parameters of an infection in a fully susceptible population, either a transmission rate and a recovery rate or a next-generation matrix of expected new cases by group, to the basic reproduction number R_0, a count of cases per case with no time unit. The same package derives the effective reproduction number once part of the population is immune, the herd immunity threshold with the critical vaccination coverage, and the reproduction number implied by an early exponential growth rate. R_0 estimated after a completed epidemic from its final attack rate is HE-FM-ATR-005, and the final attack rate and infections averted for a given R_0 and pre-epidemic coverage are computed in HE-CF-ATR-001, so neither is restated here. Vaccine effectiveness from attack rates (HE-FM-ATR-004) supplies E, the epidemic doubling time used in HE-FM-CFR-003 converts to the growth rate r, a per-cycle recovery probability for a cohort model follows the rate conversion of HE-FN-TP-001, and the economic treatment of herd protection as an external benefit is HE-FM-EXT-002. Notation follows the Basic Reproduction Number article.
Basic reproduction number of the SIR model as transmission rate times mean infectious period
D = 1 / gamma; R_0 = beta * D
Effective reproduction number as the basic reproduction number times the susceptible proportion
R_t = R_0 * x_t
Herd immunity threshold and critical vaccination coverage for a vaccine of effectiveness E
H = 1 - 1 / R_0; V_c = H / E
Reproduction number from the early exponential growth rate under three generation interval shapes
T_c = T_E + T_I; R_exp = 1 + r * T_c; R_seir = (1 + r * T_E) * (1 + r * T_I); R_delta = exp(r * T_c)
Basic reproduction number of a two-group next-generation matrix as its dominant eigenvalue
T_K = k_11 + k_22; D_K = k_11 * k_22 - k_12 * k_21; R_0 = (T_K + sqrt(T_K^2 - 4 * D_K)) / 2
