estimateRi | R Documentation |
The function estimateRi
uses relative transmission probabilities to estimate the
individual-level reproductive number.
estimateRi(df, indIDVar, dateVar, pVar)
df |
The name of the dateset with transmission probabilities |
indIDVar |
The variable name (in quotes) of the individual ID varaibles
(data frame |
dateVar |
The variable name (in quotes) of the dates that the individuals
are observed (data frame |
pVar |
The variable name (in quotes) of the transmission probabilities. |
This function is meant to be called by estimateR
which estimates the individual-level, time-level, and average reproductive numbers,
but it can also be run directly.
A data frame with the individual-level reproductive numbers. Column names:
<indIDVar>
- the individual ID with name specified.
<dateVar>
- the date the individual was observed with name specified.
Ri
- the individual-level reproductive number.
nInfectees
- the number of possible infectees for this individual.
estimateR
estimateRt
estimateRtAvg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.