att: Extraction of sorted sampling/coalescent times and...

Description Usage Arguments Value Author(s) References Examples

View source: R/att.R

Description

att extract sorted sampling/coalescent times and sampling/coalescent lineages from a phylogenetic tree.

Usage

1
att(phy, eps = 1e-06)

Arguments

phy

A phylogenetic tree, which is an object of class "phylo".

eps

Threshold parameter to separate coalescent and sampling event.

Value

A data.frame with columns t containing event times and A giving lineages.

Author(s)

Simon Frost ([email protected])

References

Palacios JA and Minin VN. Integrated nested Laplace approximation for Bayesian nonparametric phylodynamics, in Proceedings of the Twenty-Eighth Conference on Uncertainty in Artificial Intelligence, 2012.

Examples

1
2
3
library(ape)
t1=rcoal(20)
att(t1)

xiangfstats/GenieR documentation built on June 14, 2018, 2:44 a.m.