View source: R/create_exemplary_dd_tree_giappo.R
create_exemplary_dd_tree_giappo | R Documentation |
Or: create a DD tree with a strong DD effect.
create_exemplary_dd_tree_giappo(
n_taxa = 6,
crown_age = 10,
extinction_rate = 0.1,
best_of_n_trees = 100
)
n_taxa |
number of tree tips |
crown_age |
the fixed crown age of the posterior. Set to NA to let it be estimated |
extinction_rate |
per-species extinction rate |
best_of_n_trees |
simulate this number of DD trees with the desired number of taxa, |
This algorithm does so, by simulating best_of_n_trees
trees, then picks the tree that has the gamma statistic furthest
away from zero.
Trees with such a gamma statistic, have the strongest DD effect, as these
deviate strongest from the expected exponential growth
that regular birth-death (BD) trees have.
a phylo
Giovanni Laudanno, Richèl J.C. Bilderbeek
n_taxa <- 3
crown_age <- 1
phylogeny <- create_exemplary_dd_tree(
n_taxa = n_taxa,
crown_age = crown_age
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.