egf_model function

Define a Top Level Nonlinear Model

Define a Top Level Nonlinear Model

Sets flags defining a top level nonlinear model of epidemic growth to be estimated by egf.

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 TRUE, then a constant baseline mortality rate is estimated.
  • 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).

Returns

A list inheriting from class egf_model containing the validated arguments.

See Also

simulate.egf_model.

Examples

model <- egf_model() str(model)