run_parmset: Run the compartment model for a single set of parameters

Description Usage Arguments Value

View source: R/bayes-filter.R

Description

By contrast to run_parms, this function runs just the ODE integration for the SEIR equations.

Usage

1
run_parmset(parms, istate, timevals, localityscen = NULL)

Arguments

parms

Named vector of model parameters: beta, A0, D0, Ts, and mask_effect

istate

Named vector of initial values for state variable: S, E, I, Is, and R

timevals

Vector of times to output results. The values of the state variables will be initialized at the first time in the list.

localityscen

LocalScen object returned from localize_scenario. If NULL, then no changes to parameters will be applied in the future scenario.

Value

Matrix with a column for time and a column for each state variable. The first row of the matrix (which would contain the initial time) is dropped so that rbinding the output of several consecutive calls to this function will not produce any duplicate rows.


rplzzz/CovMitigation documentation built on June 7, 2021, 8:48 a.m.