View source: R/epi_finalsize.R
epi_finalsize | R Documentation |
Calculate the final size of an epidemic. Usethe the following logic:
epi_finalsize(r0)
r0 |
a double, the reproduction number (can be basic or Reff) |
1 + 1/R0*W(-R0exp(-R0))
## Not run:
epi_finalsize(3.5)
plot(seq(1,3,.01), epi_finalsize(seq(1,3,.01)),xlab = "R",
ylab = "Percent Infected", type = "l")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.