SEIR.n.Age.Classes: Main box/compartment model functions

Description Usage Arguments Value Examples

Description

Main box/compartment model functions

Usage

1
2
3
4
5
6
7
8
9
seir.n.age.classes(
  file.name,
  sheets.names,
  just.get.functions = FALSE,
  functions.kit = NULL,
  also.get.flows = NULL,
  agegrp.glue = "",
  CTMC.random.seeds = NULL
)

Arguments

file.name

a character element.

sheets.names

a list.

just.get.functions

a logical element (by default, FALSE).

functions.kit

a list containing one or more of the following: $differential.eqns.func, $post.processing.func, $post.processing.companion.kit, $CTMC.eqns.func, $CTMC.eqns.func.companion (by default, NULL).

also.get.flows

a character element (by default, NULL).

agegrp.glue

a character element (by default, an empty character element).

CTMC.random.seeds

an integer vector (by default, NULL).

Value

a list containing the results of the box/compartment model.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# Get full path to demo model (in Excel workbook)
# that comes with the no.name package
model.1.workbook <- get.path("demo.model.1.xls")

# Define workbook sheet names
sheet.names <- list(
  parms.notime.0d = "Parameters any time any age",
  parms.0d = "Parameters any age",
  parms.1d = "Parameters by Age",
  parms.2d = "Parameters by Age x Age",
  initial.conditions = "Initial conditions",
  model.flow = "Model Specs (not lazy v1)",
  auxiliary.vars = "Intermediate calculations",
  post.processing = "Post Processing Empty"
)

# Fit model with model.flow = "Model Specs (not lazy v1)"
results.1 <- seir.n.age.classes(model.1.workbook, sheet.names)

barnzilla/no.name documentation built on Oct. 14, 2020, 3:25 p.m.