GetPhylogeneticMeans: Get phylogenetic means for species (including ones with...

Description Usage Arguments Details Value

Description

Get phylogenetic means for species (including ones with missing data)

Usage

1
2
GetPhylogeneticMeans(data, phy, model = "BM", phylo_correlated = FALSE,
  pad.missing = TRUE, ...)

Arguments

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()

Details

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

Value

list containing means and variances for species, as well as the phylopars object


bomeara/biosense documentation built on May 12, 2019, 11:34 p.m.