Compute mean branch rates for bammdata object
For each sample in the posterior, computes the mean rate for
each branch in the focal phylogeny (speciation, extinction, trait
evolution). If the
bammdata object contains nsamples
samples and the target phylogeny has nbranches branches, the
function will compute a matrix of nbranches x nsamples.
An object of class
Print progress during processing of
type = 'diversification'
bammdata object is
passed as an argument, the function will return matrices for both
speciation and extinction. If
type = 'trait' object, the matrix
will simply be the corresponding phenotypic rates. Branch-specific
rates are the mean rates computed by integrating the relevant
rate-through-time function along each branch, then dividing by the
length of the branch.
Returns a list with the following components:
nbranches x nsamplesmatrix of mean speciation rates for each branch.
nbranches x nsamplesmatrix of mean extinction rates for each branch.
nbranches x nsamplesmatrix of mean phenotypic rates for each branch.
1 2 3 4 5
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.