Learn R Programming

EpiModel (version 0.95)

init.status: Disease Status Initialization Module for epiNet.simTrans

Description

This function sets the initial disease status on the network given the supplied prevalence.

Usage

init.status(all, tea = FALSE)

Arguments

all
a list object containing a networkDynamic object and other initialization information passed from epiNet.simTrans.
tea
if TRUE, set status in a temporally extended attribute, otherwise use a static vertex attribute.

Details

This internal function sets, either randomly or deterministically, the nodes that are infected at the starting time of epiNet simulations, $t_1$. If the number to be initially infected is passed, this function may set the initial number infected based on the number specified, either as a a set of random draws from a binomial distribution or as the exact number specified. In either case, the specific nodes infected are a random sample from the network. In contrast, a set of specific nodes may be infected by passing the vector to epiNet.simTrans.

See Also

This is an initialization module for epiNet.simTrans. It precedes the infection time module in init.inf.time.