GetTipRates | R Documentation |
This function calculates the rate of change from parent nodes to extant tips of a phylogeny.
GetTipRates(tree, Q, tip.states, hyper, p.mat)
tree |
an ultrametric tree of class phylo |
Q |
transition matrix containing estimated rates with column names |
tip.states |
An integer vector with a length equal to the number of species on the phylogeny. It should have values of 1 to N with N being the number of total states. Elements of the vector should match the tip names for the phylogeny. |
hyper |
logical vector of length one. TRUE indicates the model includes a binary hyperstate. Default is FALSE and indicates no binary hyperstate |
p.mat |
a probability matrix where each column represent a discrete state and each row is a species. Values in the matrix describe the probability of being in any of these states |
A named numeric vector with the rate for each tip in the phylogeny.
Michelle M. Jonika and Heath Blackmon
http://coleoguy.github.io/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.