Likelihood function for fitting SEIR model to daily case data

likelihood_func(x, t, data, params, init, stochastic = FALSE)

Arguments

x

vector of parameters to fit

t

vector of time points

data

real data to fit model to

params

list of parameters values for input into SEIR model

init

named vector of initial conditions for each model compartment

stochastic

logical, if TRUE, a stochastic model is fit to the data otherwise a deterministic model is used.