Calculates the basic reproduction number \(R_{0}\) from the exponential growth rate obtained by either Poisson or log-linear regression.
R.from.r(r, GT)
A numeric value for R.
The exponential growth rate.
Generation time distribution from generation.time()
.
Pierre-Yves Boelle, Thomas Obadia
For internal use. Called by est.R0.EG()
.
\(R_{0}\) is calculated as the inverse of the discretized Laplace transform,
making use of the discretized generation time distirbution (output from
generation.time()
).
Wallinga, J., and M. Lipsitch. "How Generation Intervals Shape the Relationship Between Growth Rates and Reproductive Numbers." Proceedings of the Royal Society B: Biological Sciences 274, no. 1609 (2007): 599.