Description Usage Arguments Value
View source: R/utility_functions.R
Estimate the extended phylogenetic independent contrast. Rather than normalize differences across nodes by branch lengths, differences are normalized be the expected difference obtained from replicate simulations. This allows for greater model flexibility.
1 2 3 4 5 6 7 8 |
x |
A numeric vector with one trait value per tip |
phy |
An ape::phylo object |
var.contrasts |
logical, indicates whether the expected variances of the contrasts should be returned |
model_method |
The model of trait evolution. Can be one of c("BM", "OU") |
model_parameters |
Model parameters from fitContinuous. Will estimate if not provided. |
n_replicates |
The number of simulations used to estimate the expected differences |
A vector of phylogenetically independent contrasts
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.