Learn R Programming

phytools (version 2.3-0)

gamma_pruning: Internally used function

Description

Internally used function to compute the likelihood under a \(\Gamma\) model.

Usage

gamma_pruning(par, nrates=4, tree, x, model=NULL, median=TRUE, ...)

Value

A value of the log-likelihood.

Arguments

par

function parameters.

nrates

number of discrete rate categories.

tree

object of class "phylo".

x

data in the form of a binary matrix.

model

design matrix of fitted model.

median

use the median of each rate category.

...

optional arguments.

Author

Liam Revell liam.revell@umb.edu

References

Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.