fit_seir: fit the SEIR model to data

View source: R/forecasting_practical.R

fit_seirR Documentation

fit the SEIR model to data

Description

fit_seir fits an SEIR model to incidence data

Usage

fit_seir(incidence_data, current_week, starting_week, R_0_min, R_0_max)

Arguments

incidence_data

data frame extracted by extract_incidence

current_week

numeric vector of length 1: week number of the current week

starting_week

numeric vector of length 1: guess for week number when the epidemic started. Use data from starting week to current week to predict

R_0_min

numeric vector of length 1: lower bound of R_0 values over which to search

R_0_max

numeric vector of length 1: upper bound of R_0 values over which to search

Value

the value of R_0 with the maximum likelihood


c97sr/learnidd documentation built on Jan. 12, 2025, 4:24 p.m.