init_config_mat: initializes the bookkeeping object for population level...

Description Usage Arguments Value Examples

View source: R/init_config_mat.R

Description

initializes the bookkeeping object for population level counts

Usage

1
init_config_mat(epimodel, init_state, t0, tmax)

Arguments

epimodel

an epimodel list

t0

the first observation time

tmax

the final observation time

Value

initialized matrix with columns to store event times and counts of individuals in each compartment. The first and last rows of the matrix always correspond to time 0 and tmax. The state at tmax is initialized to init_state.

Examples

1
2
3
init_state <- c(S = 45, I = 5, R = 0)
tmax <- 5
init_pop_traj(init_state, tmax)

fintzij/BDAepimodel documentation built on Sept. 20, 2020, 1:44 p.m.