Description Usage Arguments Details Value
Get phylogenetic means for species (including ones with missing data)
1 2 | GetPhylogeneticMeans(data, phy, model = "BM", phylo_correlated = FALSE,
pad.missing = TRUE, ...)
|
data |
A data.frame with first column species name, other columms trait data. NA are allowed |
phy |
A tree for all species in the data. |
model |
A model for phylopars. Options are "BM", "OU" "lambda", "kappa", "delta", "EB", "star" |
phylo_correlated |
If TRUE, parameters are estimated assuming traits are correlated. This can be quite slow. |
... |
Other options to pass to phylopars() |
Note that this will use same model (but different params) for each column. If you want to use different models, do different subsets of the data
list containing means and variances for species, as well as the phylopars object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.