estimateRt | R Documentation |
The function estimateRt
estimates the time-level effective reproductive number
from individual-level reproductive numbers.
estimateRt(riData, dateVar, timeFrame = c("days", "weeks", "months", "years"))
riData |
The name of the dateset with individual-level reproductive numbers. |
dateVar |
The variable name (in quotes) of the dates that the individuals are observed
(data frame |
timeFrame |
The time frame used to calculate Rt
(one of |
This function is meant to be called by estimateR
which estimates the individual-level and time-level, and average reproductive numbers,
but it can also be run directly.
A data frame with the time-level reproductive numbers. Column names:
time
- the time frame corresponding to the reproductive number estimate
(day for "days" and "weeks", month for "months", year for "years").
timeRank
- the rank of the time frame.
Rt
- the time-level reproductive number for this time frame.
estimateR
estimateRi
estimateRtAvg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.