AR2R0 function

Title Calculate basic reproduction number from attack rate

Title Calculate basic reproduction number from attack rate

AR2R0(AR)

Arguments

  • AR: the attack rate; a value or vector of values between 0 and 1

Returns

R0, the basic reproduction number, calculated as -log(1-AR)/AR

Examples

## Calculate R0 for an attack rate of 50% AR2R0(0.5) ## plot the relationship between R0 and attack rate x <- seq(0.01, 1, 0.01) plot(AR2R0(x), x, type = "l", xlab = "R0", ylab = "Attack rate")
  • Maintainer: Thibaut Jombart
  • License: MIT + file LICENSE
  • Last published: 2023-01-13