dnCBDSP - Conditioned birth-death-shift process
| rootAge : | RealPos (pass by const reference) |
| The age of the root. | |
| rootLambda : | RealPos (pass by const reference) |
| The speciation rate at the root. | |
| rootMu : | RealPos (pass by const reference) |
| The extinction rate at the root. | |
| lambda : | Distribution__RealPos (pass by const reference) |
| The prior distribution for the speciation rates. | |
| Default : NULL | |
| mu : | Distribution__RealPos (pass by const reference) |
| The prior distribution for the extinction rates. | |
| Default : NULL | |
| delta : | RealPos (pass by const reference) |
| The rate of jumping between rate categories. | |
| rho : | Probability (pass by const reference) |
| The taxon sampling probability. | |
| condition : | String (pass by value) |
| The condition of the birth-death process. | |
| Default : survival | |
| Options : time|survival | |
| taxa : | Taxon[] (pass by value) |
| The taxon names used for initialization. |
# draw basic process parameters
taxa <- [taxon("A"), taxon("B"), taxon("C"), taxon("D"), taxon("E")]
root_age ~ dnUniform(0, 2)
root_lambda ~ dnUniform(0, 1)
root_mu ~ dnUniform(0, 1)
sampling_prob <- 1
# simulate tree
tree ~ dnCBDSP(rootAge = root_age,
rootLambda = root_lambda,
rootMu = root_mu,
delta = 0.2,
rho = sampling_prob,
condition = "survival",
taxa = taxa)