Infection_sim: Forwards Infection Simulator

Description Usage Arguments Value

Description

Infection_sim produces a list of generations detailing an infection process

Usage

1
2
Infection_sim(N = 1e+05, R0 = 2, Tg = 2.6, fixed.offspring = FALSE,
  scale = 1, size = 1, real.time = FALSE, continous.time = TRUE)

Arguments

N

Target infected population size. Default = 1e5

R0

basic reproduction number. Default = 2

Tg

mean generation time. Default = 2.6 days

fixed.offspring

Boolean dictating whether R0 offspring are always produced. Default = FALSE

scale

rgamma scale parameter. Default = 1

size

rnbinom size parameter Default = 1

real.time

Boolean dictating. whether an extra generation is simulated producing extra for real.time consideration.Default = FALSE

continous.time

Boolean dictating whether gamma process is used for generation time distribution. Default = TRUE

Value

Returns a list of 5 lists


OJWatson/evoflution documentation built on May 7, 2019, 8:32 p.m.