egf_model {epigrowthfit} | R Documentation |
Define a Top Level Nonlinear Model
Description
Sets flags defining a top level nonlinear model of epidemic growth
to be estimated by egf
.
Usage
egf_model(curve = c("logistic", "richards", "exponential",
"subexponential", "gompertz"),
excess = FALSE,
family = c("nbinom", "pois"),
day_of_week = FALSE)
Arguments
curve |
a character string specifying a model for expected cumulative incidence as a function of time. |
excess |
a logical flag. If |
family |
a character string specifying a family of discrete probability distributions assigned to observations, which are the first order differences of observed cumulative incidence. |
day_of_week |
an integer flag. If positive, then day of week effects are estimated as offsets relative to the indicated day of week (1=Sunday, 2=Monday, and so on). |
Value
A list inheriting from class egf_model
containing the
validated arguments.
See Also
Examples
model <- egf_model()
str(model)
[Package epigrowthfit version 0.15.3 Index]