Last chance! 50% off unlimited learning
Sale ends in
sim.fbd.taxa: Simulating fossilized birth-death trees on a fixed number of extant taxa.
sim.fbd.taxa(n, numbsim, lambda, mu, psi, frac = 1, complete = FALSE)
List of numbsim simulated SAtrees with n extant sampled tips.
Number of extant sampled tips.
Number of trees to simulate.
Speciation rate.
Extinction rate.
Fossil sampling rate.
Extant sampling fraction. When complete = FALSE, the actual (simulated) number of extant tips is n/frac, but only n tips are included in the result (incomplete sampling). When complete = TRUE: all unsampled lineages are included, i.e. the final tree has n/frac extant tips.
whether to return the complete tree (with non-sampled lineages) or the reconstructed tree (with unsampled lineages removed).
n = 10
lambda = 2.0
mu = 0.5
psi = 0.6
numbsim = 2
if (requireNamespace("TreeSim", quietly = TRUE)) {
sim.fbd.taxa(n, numbsim, lambda, mu, psi)
}
Run the code above in your browser using DataLab