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 (sdwfrost@gmail.com)

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 May 4, 2019, 1:06 p.m.