Pnd: Probability density of node depths.

View source: R/Pnd.R

PndR Documentation

Probability density of node depths.

Description

Calculating the probability density of node depths of a phylogenetic tree.

Usage

Pnd(t, r, epsi, y)

Arguments

t

Numeric vector. A vector specifying the node depths of a phylogeny in millions of years.

r

Numeric. The net diversification rate: λ - μ. The units are in events/lineages/millions years.

epsi

Numeric. The turnover rate: μ / λ. The units are in events/lineages/millions years.

y

Numeric. The sampling probability also called sampling fraction: k / N.

Value

The probability density of node depths equivalent to f\_y(t) in Lambert 2018 and to λ * p1 in Stadler 2010 and Lambert et al. 2022.

Author(s)

Sophia Lambert

References

Lambert, A. (2018). The coalescent of a sample from a binary branching process. Theoretical population biology, 122, 30-35. Stadler, T. (2010). Sampling-through-time in birth–death trees. Journal of theoretical biology, 267(3), 396-404.

See Also

likelihood_bdRho, fitMCMC_bdRho


sophia-lambert/UDivEvo documentation built on Sept. 27, 2022, 11:05 p.m.