Description Usage Arguments Details Value Examples
View source: R/calc_expected_sptree_values.R
Calculate expected tree length
1 | calc_expected_bdtree_length(birth_rate, death_rate, ntips, k = 1)
|
birth_rate |
species birth rate (real number) |
death_rate |
species death rate (real number) |
ntips |
number of tips in the present (integer) |
k |
speciation event |
Calculates expected tree length if death_rate is non-zero given birth rate, death rate, and number of tips using the following equation from Gernhard 2008.
Numeric value of tree length given the input parameters
1 2 | calc_expected_bdtree_length(0.05, 0.01, 10)
calc_expected_pbtree_length(0.1, 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.