findRates | R Documentation |
Makes an attempt to automatically calculate lambda and mu using diversitree given starting values for the optimization.
findRates(tree, prop.complete, ini.lambda = 1, ini.mu = 0.1, rate.estimate)
tree |
A phylogeny in ape format. |
prop.complete |
The proportion of all species in the tree that are currently contained in it. For instance, if a tree contains 9 species, but there should be 10 species in the tree, set sampling to 0.9. |
ini.lambda |
Initial speciation value for the optimization. Defaults to 1. |
ini.mu |
Initial extinction value for the optimization. Defaults to 0.1. |
rate.estimate |
Whether to use 'laser', 'ape', or 'diversitree' to calculate diversification rates. The latter is the only of those that can account for missing taxa, but in my experience returns systematically biased values. |
Add details.
A named numeric vector with the estimated speciation and extinction rates.
ETM unpublished
#load a molecular tree up
data(bird.families)
tree <- multi2di(bird.families)
findRates(tree=tree, prop.complete=0.95, rate.estimate="diversitree")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.