R/impute-recovery-counts.R
cases_to_SIR.data.frame.Rd
Impute Recovered counts for the SIR model
# S3 method for data.frame cases_to_SIR(data, par, method = "chain-binomial")
data | 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
df <- data.frame(t = 0:4, confirmed = c(0, 1, 3, 9, 9), N = 10) out <- cases_to_SIR(data = df, par = 1)