LogLik_bounds {BBMV}R Documentation

Likelihood of the FPK model

Description

Internal functions use to calculate the likelihood of the FPK model, used in ML and MCMC estimation.

Usage

LogLik_bounds(tree_formatted, dCoeff, dMat, bounds)
LogLik_bounds_est_root(tree, trait, dCoeff, V, x0_pos, bounds)

Arguments

tree_formatted

A formatted tree as returned by FormatTree_bounds.

dCoeff

The diffusion coefficient.

dMat

The discretized diffusion matrix.

V

A numeric vector giving the value of the evolutionary potential in each point of the trait grid.

bounds

A vector giving the bounds of the trait interval.

x0_pos

The value of the trait at the root of the tree.

tree

A phylogenetic tree in phylo format.

trait

A trait vector for tip taxa.

Author(s)

F. C. Boucher


[Package BBMV version 2.1 Index]