Description Usage Arguments Value
View source: R/model_estimation.R
Function to rescale branches of a phylogenetic tree following the exponential rate proportional, or inversely-proportional, to lineage-age. This function can be used to simulate a realization of the model for posterior predictive checks among other reasons.
1 2 3 4 5 6 7 | tree_rescale_exp(
change_rate = 0.05,
budding_prob = 0.3,
tree,
chunk_fraction = 0.01,
decay_fn = TRUE
)
|
change_rate |
rate for the exponential distribution. |
budding_prob |
probability of a budding speciation on the internal node. |
tree |
phylogenetic tree. |
chunk_fraction |
fraction of the total tree-height for branch length discretization. |
decay_fn |
whether rates should vary proportional (FALSE) or inversely proportional (TRUE) to lineage age. |
a phylogenetic tree with rescaled branch lengths and reordered to "cladewise" order (see 'ape::reorder.phylo').
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.