LogLik_bounds {BBMV} | R Documentation |
Internal functions use to calculate the likelihood of the FPK model, used in ML and MCMC estimation.
LogLik_bounds(tree_formatted, dCoeff, dMat, bounds) LogLik_bounds_est_root(tree, trait, dCoeff, V, x0_pos, bounds)
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. |
F. C. Boucher