calculate_expected_leaves_sptree: Calculate expected leaves of a species tree

Description Usage Arguments Details Value References Examples

View source: R/estimate_node_heights.R

Description

Calculate expected leaves of a species tree

Usage

1
2
3
calculate_expected_leaves_sptree(lambda, mu, t)

ave_tips_st(lambda, mu, t)

Arguments

lambda

speciation rate

mu

extinction rate

t

time to simulate until

Details

Calculates the expected number of leaves for a birth-death simulation given a speciation and extinction rate and a time.

Value

The expected number of leaves

References

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.

Examples

1
2
3
4
spec_rate <- 1.0
ext_rate <- 0.5
time <- 2
ave_tips_st(spec_rate, ext_rate, time)

treeducken documentation built on March 3, 2021, 1:11 a.m.