generalized_growth: Generalized Growth Model for Epidemic Data

View source: R/growthmodels.R

generalized_growthR Documentation

Generalized Growth Model for Epidemic Data

Description

Estimation of generalized growth models from new infections data

Usage

generalized_growth(
  y, 
  t = NULL, 
  nls = TRUE,
  nls_start = list(a = 1, b = 1),
  impute_missing_values = FALSE,
  add_constant = 1,
  verbose = FALSE
  )

Arguments

y

numeric vector with cumulative infections data over time

t

vector of class numeric or Date with time points or dates

nls

Nonlinear estimation? TRUE or FALSE

nls_start

A list with start values for the two parameters to be estimated

impute_missing_values

bool argument which indicates whether missing values have to be imputed via linear imputation

add_constant

Numeric constant to be added to y if zero values occur (only relevant for OLS estimation)

verbose

bool argument which indicates whether progress messages are displayed

Details

This function allows the estimation of a generalized growth model (Viboud et al. 2016). This model is designed for the analysis of the initial phase of an epidemic spread. The user must specify the dependent variable (e.g., daily infections) and the time variable (time counter or date values). The estimation is performed using a linearized model as an OLS estimator (Rawlings et al. 1998), and, if nls=TRUE, also by NLS. The results are the growth rate r and the growth deceleration rate p.

Value

object of class gengrowth-class

Author(s)

Thomas Wieland

References

Chowell G, Viboud C, Hyman JM, Simonsen L (2015) The Western Africa ebola virus disease epidemic exhibits both global exponential and local polynomial growth rates. PLOS Currents Outbreaks, ecurrents.outbreaks.8b55f4bad99ac5c5db3663e916803261. \Sexpr[results=rd]{tools:::Rd_expr_doi("https://doi.org/10.1371/currents.outbreaks.8b55f4bad99ac5c5db3663e916803261")}

Liyanage YR, Chowell G, Pogudin G, Tuncer N (2025) Structural and Practical Identifiability of Phenomenological Growth Models for Epidemic Forecasting. Viruses 17(4), 496. \Sexpr[results=rd]{tools:::Rd_expr_doi("https://doi.org/10.3390/v17040496")}

Rawlings JO, Pantula SG, Dickey DA (1998) Applied Regression Analysis: A Research Tool. Second Edition. New York: Springer. \Sexpr[results=rd]{tools:::Rd_expr_doi("https://doi.org/10.1007/b98890")}

Viboud C, Simonsen L, Chowell G (2016) A generalized-growth model to characterize the early ascending phase of infectious disease outbreaks. Epidemics 16, 25-35. \Sexpr[results=rd]{tools:::Rd_expr_doi("http://dx.doi.org/10.1016/j.epidem.2016.01.002")}

See Also

growth_initial_generalized, logistic_growth, exponential_growth

Examples

data(COVID19Cases_geoRegion)
# Get SWISS COVID19 cases at NUTS 3 level

COVID19Cases_ZH <-
  COVID19Cases_geoRegion[
  (COVID19Cases_geoRegion$geoRegion == "ZH")
  & (COVID19Cases_geoRegion$sumTotal > 0)
  ,]
# COVID cases for Zurich

gengrowth_ZH <- generalized_growth (
  y = COVID19Cases_ZH$entries[1:28], 
  t = COVID19Cases_ZH$datum[1:28] 
)
# Generalized growth model for the first 4 weeks

summary(gengrowth_ZH)
# Summary of generalized growth model

plot(gengrowth_ZH)
# Plot of generalized growth model

swash documentation built on Nov. 28, 2026, 5:14 p.m.