infer_multittree_share_param.Rd
Simultaneously infer transmission trees given phylogenetic trees User can specify any subset of parameters that will be shared by providing a character vector of parameter names to the argument "share".
infer_multittree_share_param(
ptree_lst,
w.shape = 2,
w.scale = 1,
ws.shape = w.shape,
ws.scale = w.scale,
mcmcIterations = 1000,
thinning = 1,
startNeg = 100/365,
startOff.r = 1,
startOff.p = 0.5,
startPi = 0.5,
prior_pi_a = 1,
prior_pi_b = 1,
updateNeg = TRUE,
updateOff.r = TRUE,
updateOff.p = FALSE,
updatePi = TRUE,
share = NULL,
startCTree_lst = rep(NA, length(ptree_lst)),
updateTTree = TRUE,
optiStart = 2,
dateT = Inf,
delta_t = 0.01,
verbose = F
)
List of phylogenetic tree
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
Number of MCMC iterations to run the algorithm for
MCMC thinning interval between two sampled iterations
Starting value of within-host coalescent parameter Ne*g
Starting value of parameter off.r
Starting value of parameter off.p
Starting value of sampling proportion pi
First shape parameter of Beta prior for pi
Second shape parameter of Beta prior for pi
Whether of not to update the parameter Ne*g
Whether or not to update the parameter off.r
Whether or not to update the parameter off.p
Whether or not to update the parameter pi
Character vector of parameters to be shared. For example, share = c("off.r", "off.p") would share the offspring distribution. Allowed parameter names are "neg", "off.r", "off.p" and "pi".
Optional combined list of trees to start from
Whether or not to update the transmission tree
Type of optimisation to apply to MCMC start point (0=none, 1=slow, 2=fast)
Date when process stops (this can be Inf for fully simulated outbreaks)
Grid precision (smaller is better but slower)
Whether or not to use verbose mode (default is false)
list the same size as input, each element contains posterior transmission trees inferred from corresponding phylogenetic tree