mk2.loglk: Binary state character log likelihood

Description Usage Arguments Value

View source: R/mk2.likelihood.R

Description

Calculate the log likelihood of the distribution of a binary state character on a phylogeny

Usage

1
mk2.loglk(pars, x, phy)

Arguments

pars

A vector of transition rates. e.g. pars[1] = rate of transition from state 0 to state 1.

x

A vector of character states in the set 0, 1

phy

A phylogeny that inherits class phylo and extended-phylo.

Value

The log likelihood of the data


blueraleigh/pea.toolkits documentation built on Dec. 24, 2017, 3:20 p.m.