Skip to contents

R0 carries both routes to the basic reproduction number. This is the name the backlog asked for, not a second implementation.

Usage

R0bayse(
  beta = NULL,
  gamma = NULL,
  attack_rate = NULL,
  tol = 1e-08,
  max_iter = 100
)

Arguments

beta

Transmission rate.

gamma

Recovery rate, positive.

attack_rate

Final attack rate in (0, 1).

tol

Newton convergence tolerance.

max_iter

Maximum Newton iterations.

Value

The value of R0.

Details

Formula: R0 = beta / gamma; or solve 1 - AR = exp(-R0 AR).

References

Diekmann, O., Heesterbeek, J. A. P. & Metz, J. A. J. (1990). Journal of Mathematical Biology 28(4):365-382. doi:10.1007/BF00178324 .

Examples

R0bayse(beta = 0.3, gamma = 0.1)$estimate
#> [1] 3