Description Usage Arguments Details Value References Examples
View source: R/estimate_node_heights.R
Calculate expected leaves of a species tree
1 2 3 | calculate_expected_leaves_sptree(lambda, mu, t)
ave_tips_st(lambda, mu, t)
|
lambda |
speciation rate |
mu |
extinction rate |
t |
time to simulate until |
Calculates the expected number of leaves for a birth-death simulation given a speciation and extinction rate and a time.
The expected number of leaves
Mooers, A., Gascuel, O., Stadler, T., Li, H., & Steel, M. (2012). Branch lengths on birth–death trees and the expected loss of phylogenetic diversity. Systematic biology, 61(2), 195-203.
1 2 3 4 | spec_rate <- 1.0
ext_rate <- 0.5
time <- 2
ave_tips_st(spec_rate, ext_rate, time)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.