makeTTree.Rd
Simulate a transmission tree
makeTTree(
off.r,
off.p,
pi,
w.shape,
w.scale,
ws.shape = w.shape,
ws.scale = w.scale,
maxTime = Inf,
nSampled = NA
)
First parameter of the negative binomial distribution for offspring number
Second parameter of the negative binomial distribution for offspring number
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
Duration of simulation (can be Inf)
Number of sampled individuals (can be NA for any)
A N*3 matrix in the following format with one row per infected host, first column is time of infection, second column is time of sampling, third column is infector