run_scenario: Run a single hospital census scenario

Description Usage Arguments Details Value See Also

View source: R/sim.R

Description

Run a hospital census scenario for a single set of model parameters. Results for several projected variables will be returned in a single data frame.

Usage

1
2
3
4
5
6
run_scenario(
  timevals,
  params = list(),
  counties = NULL,
  scenarioName = "communityInfection"
)

Arguments

timevals

Times to output values for. If only a single value is provided, it is assumed to be a maximum time (days) to run to, and values will be output in one day steps from 0 to tmax.

params

List of parameter values, see details

counties

If provided, run just these counties

scenarioName

Name for the scenario; this will be copied into results

Details

The results returned will be:

The parameters for the model are:

eta

(scalar) base value for initial transmissivity

xi

(scalar) coefficient for population density in initial transmissivity

D0

(scalar) Base recovery time. Average base recovery time for an infected person.

A0

(scalar) Base incubation time. Average tie for an exposed person to become infected.

(various time lags)

Time after infection for various events (RTS for details)

(a whole slew of others)

see definition of param_defaults for definitions

Value

Data frame with results (see details) over time

See Also

run_parms


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