Learn R Programming

EpiModel (version 0.95)

get.prev: Get State Size from a NetworkDynamic Object

Description

This function provides all active model state sizes from the network at the specified time step, output to a list of vectors.

Usage

get.prev(all, at, set.all = TRUE)

Arguments

all
a list object containing a networkDynamic object and other initialization information passed from epiNet.simTrans.
at
time step to query.
set.all
if TRUE, sets output on all object, otherwise will output directly.

Details

This network utility is used during the epiNet.simTrans simulation process to efficiently query the current size of each state or compartment in the model at any given timestep. For a bipartite network, the current state size for each mode, and overall is provided. A more flexible, but inefficient status query function is get.stat.

See Also

get.stat