llik: log-likelihood of a phylogenetic tree

Description Usage Arguments Value Author(s) Examples

View source: R/llik.R

Description

it calculates the log-likelihood of a phylogenetic tree under the diversity-dependance model.

Usage

1
llik(pars, tree)

Arguments

pars

Parameters corresponding to the diversity-dependance model

tree

phylogenetic tree described as the three vectors wt,E and n.

Value

log-likelihood value

Author(s)

F. Richter M.

Examples

1
2
s= sim.tree()
llik(c(0.8,0.1,40),s$tree)

franciscorichter/dmea02 documentation built on March 21, 2020, 3:46 a.m.