macro_pred {evolvability} | R Documentation |
Macroevolutionary predictions
Description
macro_pred
Macroevolutionary predictions
Usage
macro_pred(y, V, useLFO = TRUE)
Arguments
y |
vector of species means |
V |
phylogenetic variance matrix, must have same order as |
useLFO |
excludes the focal species when calculating the corresponding species' mean. The correct way is to use TRUE, but in practice it has little effect and FALSE will speed up the model fit. |
Details
macro_pred
Gives a vector of macroevolutionary predictions for each
species based on the other species given the phylogeny and a phylogenetic
variance matrix.
Value
macro_pred
returns a of macroevolutionary predictions at the
tips.
Author(s)
Geir H. Bolstad
Examples
# Trait values
y <- rnorm(3)
# A variance matrix (the diagonal must be the same order as y).
V <- matrix(c(1.0, 0.5, 0.2, 0.5, 1.0, 0.4, 0.2, 0.4, 1.0), ncol = 3)
# Macroevolutionary predictions (output in the same order as y).
macro_pred(y, V)
[Package evolvability version 2.0.0 Index]