Fit any model used in PMC

Share:

Description

The fitting function used by pmc to generalize fitting to both geiger and ouch models.

Usage

1
pmc_fit(tree, data, model, ...)

Arguments

tree

a phylogenetic tree. can be ouch or ape format

data

trait data in ape or ouch format

model

the name of the model to fit,

...

whatever additional options would be provided to the model fit

Value

the object returned by the model fitting routine (gfit for geiger, hansen/brown for ouch)