Description Usage Arguments Value References Examples
View source: R/bd.calculations.R
Probability of extant species phylogeny conditioned on the origin (Stadler, 2012, eq. 2) or the crown (crown = T) (Stadler, 2012, eq. 5)
1 | bd.probability.extant(tree, b, d, rho = 1, mpfr = FALSE, crown = FALSE)
|
tree |
Phylo object of extant taxa (the function will remove any extinct taxa prior to calculating the likelihood) |
b |
Rate of speciation (branching) |
d |
Rate of extinction (branch termination). Must be < b |
rho |
Extant species sampling probability |
crown |
If TRUE the process is conditioned on the crown (default = F) |
Log likelihood
Stadler, T. 2012. How can we improve accuracy of macroevolutionary rate estimates? Systematic Biology 62: 321-329.
1 2 3 4 5 6 | # simulate tree
t = TreeSim::sim.bd.taxa(100,1,1,0.1)[[1]]
# calculate birth-death probability
birth = 1
death = 0.1
bd.probability.extant(t, birth, death)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.