simulateOutbreak.Rd
Simulate an outbreak
simulateOutbreak(
off.r = 1,
off.p = 0.5,
neg = 0.25,
nSampled = NA,
pi = 0.5,
w.shape = 2,
w.scale = 1,
ws.shape = NA,
ws.scale = NA,
w.mean = NA,
w.std = NA,
ws.mean = NA,
ws.std = NA,
dateStartOutbreak = 2000,
dateT = Inf
)
First parameter of the negative binomial distribution for offspring number
Second parameter of the negative binomial distribution for offspring number
the within-host effective population size (Ne) timesgeneration duration (g)
number of sampled infected individuals, or NA for any
probability of sampling an infected individual
Shape parameter of the Gamma probability density function representing the generation time
Scale parameter of the Gamma probability density function representing the generation time
Shape parameter of the Gamma probability density function representing the sampling time
Scale parameter of the Gamma probability density function representing the sampling time
Mean of the Gamma distribution representing the generation time
Std of the Gamma distribution representing the generation time
Mean of the Gamma distribution representing the sampling time
Std of the Gamma distribution representing the sampling time
Date when index case becomes infected
Date when process stops (this can be Inf for fully simulated outbreaks)
Combined phylogenetic and transmission tree
simulateOutbreak()
#> Colored phylogenetic tree
#> Number of sampled individuals=3
#> Total number of hosts=5
simulateOutbreak(off.r=2,dateStartOutbreak=2010,dateT=2015)
#> Note that rejection sampling was used 1 times
#> Colored phylogenetic tree
#> Number of sampled individuals=12
#> Total number of hosts=16