Learn R Programming

phylometrics (version 0.0.1)

tars: calculate the tip age rank sum (TARS) metric

Description

This function calculates the TARS metric. To conduct significance test on TARS, use 'tars' as input of 'func' in 'treestat'

Usage

tars(state, phy)

Arguments

state
a vector of '0' and '1' for trait state of each tip, in the same order as the tip labels.
phy
an object of class 'phylo'.