init.inf.time: Infection Time Module for epiNet.simTrans
Description
This function sets the initial time of infection for those
with disease status infected.Arguments
all
a list object containing a
networkDynamic
object and other initialization
information passed from epiNet.simTrans
. Details
This module sets the time of infection for those nodes set
infected at the starting time of epiNet
simulations,
$t_1$. For vital dynamics models, the infection time
for those nodes is a random draw from an exponential
distribution with the rate parameter defined by the
di.rate
argument. For models without vital dynamics,
the infection time is a random draw from a uniform
distribution of integers with a minimum of 1 and a maximum
of the number of time steps in the model. In both cases, to
set the infection times to be in the past, these times are
multiplied by -1, and 2 is added to allow for possible
infection times up until step 2, when the disease
simulation time loop starts.