randEvent: Perform a random event

Description Usage Arguments

Description

Randomly selects an event weighted by their rates, runs the event and then calculates a waiting time.

Usage

1
randEvent(pop, t, tMod)

Arguments

pop

A population object

t

Time step. Note the population should be AT time t, going to t+1.

tMod

Time step modulus the sample argument in makePop.


timcdlucas/MetapopEpi documentation built on May 31, 2019, 1:47 p.m.