multiTypeOU: Fits the generic multitype OU.

Description Usage Arguments Details Value

Description

Fits the generic multitype OU.

Usage

1
2
3
  multiTypeOU(data, tree, regimes,
    model_spec = list(alpha = "indep", sigma = "indep", theta = "indep"),
    Xo = NULL, alpha = 1, sigma = 1, theta = NULL, ...)

Arguments

data

the trait data

tree

the phylogenetic tree in ouch format

regimes

the regimes in ouch format

model_spec

a list that specifies the model, see details

Xo

root state

alpha

a vector of length n_regimes if indep in model, or a scalar

sigma

a vector of length n_regimes if indep in model, or a scalar

theta

a vector of length n_regimes if indep in model, or a scalar

Details

Submodels such as brownie, and other unique models, can be created by specifiying how parameters are treated under model_spec get the likelihood of the specified model using the specified parameters

Value

log likelihood


cboettig/wrightscape documentation built on May 13, 2019, 2:12 p.m.