Description Usage Arguments Value Examples
View source: R/impute-recovery-counts.R
Impute Recovered counts for the SIR model
1 2 | ## S3 method for class 'grouped_df'
cases_to_SIR(data, par, method = "chain-binomial")
|
data |
data frame or grouped data frame with the following columns
|
par |
named vector of parameters |
method |
Currently default is "chain-binomial". See details. More methods to come. |
the input data with the additional columns
number of susceptible
number of infectious
number of recovered
1 2 3 4 5 | df <- data.frame(t = 0:4,
confirmed = c(0, 1, 3, 9, 9),
N = 10)
out <- cases_to_SIR(data = df,
par = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.