Skip to contents

Calculate outbreak size at a given time

Usage

getSizeAtTime(time, transmrates, recoveryrate, popsize, initR, initI, initV)

Arguments

time

the time at which to calculate the outbreak size

transmrates

matrix of group-to-group (column-to-row) transmission rates

recoveryrate

inverse of mean infectious period

popsize

the population size of each group

initR

initial number of each group already infected and removed (included in size result)

initI

initial number of each group infectious

initV

initial number of each group vaccinated

Value

a list with totalSize (total cumulative infections) and activeSize (total currently infected) in each group at the specified time