B2: B2

Description Usage Arguments Value References Examples

Description

This calculates B2 for a phylogenetic tree. If we consider the topological distance, M_i, between each leaf i and the root, then

B_2 = ∑_{i \in \mathcal{L}} {\frac{M_i}{2^{M_i}} }.

Usage

1
B2(tree)

Arguments

tree

A tree of class phylo or treeshape.

Value

An object of class numeric.

References

Examples

1
2
3
N=30
tree<-rtreeshape(1,tip.number=N,model="pda")[[1]]
B2(tree)

bdearlove/treeImbalance documentation built on May 12, 2019, 3:39 a.m.