Learn R Programming

diversitree (version 0.6-2)

make.bm: Brownian Motion Character Evolution

Description

Create a likelihood function for models of simple Brownian Motion character evolution. This function creates a likelihood function that can be used in maximum likelihood or Bayesian inference.

Usage

make.bm(tree, states, meserr=NULL)

Arguments

tree
A phylogenetic tree, in ape phylo format.
states
A vector of continuous valued character states. This vector must be named with the tip labels of tree.
meserr
An optional vector of measurement errors, as standard deviation around the mean. If a single value is given it is used for all tips, otherwise the vector must be named as for states.

Details

This function is heavily based on fitContinuous in the geiger package. However, this version only fits Brownian motion models.