View source: R/simulate_dd_phylo.R
simulate_dd_phylo | R Documentation |
Use a Gillespie algorithm to create a phylo
object from the DD model
specified by dd_model
and params
. The phylogeny is conditioned on the
survival of at least one lineage to the end of the simulation.
simulate_dd_phylo(params, nb_gens, dd_model, stem_or_crown = "stem")
params |
a named vector containing the values of the parameters of the
DD model. Names and length must match those expected by |
nb_gens |
integer, the number of generations the simulation should run for. |
dd_model |
a list with five named elements that together specify the diversity-dependent model:
|
stem_or_crown |
character, either "stem" or "crown", should the simulation start from 1 species (stem lineage) or 2 species (crown lineages)? |
a phylo
object containign the simulated phylogeny, including
extinct lineages and the stem.
Theo Pannetier
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.