makeEpiRecord: Simulate epidemiological record

View source: R/makeEpiRecord.R

makeEpiRecordR Documentation

Simulate epidemiological record

Description

Create an epidemiological record of infectors and infectees with corresponding infection and recovery times

Usage

makeEpiRecord(lambda, duration = 1, NumCases = 50)

Arguments

lambda

a numeric vector specifying the time varying intensity lambda(t) which is passed to simNHP.fun to generate the non-homogeneous Poisson process.

duration

the fixed duration of infection (default is 1)

NumCases

the approximate number of infected cases (default is 50)

Value

A matrix with columns "Infectee", "Infector", "InfnTime" (infection time), "RecTime" (recovery time), "DoneFlag". Suitable for using with getLabGenealogy

Author(s)

Caroline Colijn c.colijn@imperial.ac.uk

Michelle Kendall michelle.louise.kendall@gmail.com

See Also

getLabGenealogy

Examples

myepirecord <- makeEpiRecord(c(1,2,3,4), duration=2, NumCases=100)


MichelleKendall/phyloTop documentation built on Feb. 1, 2023, 8:07 a.m.