I1: I1

Description Usage Arguments Value References Examples

Description

This calculates I1, a weighted average of the balance of internal nodes, where N is the number of tips, j is the number of nodes, and r_j and l_j represent the number of tips in the left and right subtrees respectively. Then,

I_1 = \frac{2}{(N-1)(N-2)} ∑_{j \in \mathcal{I} } {|r_j-l_j|}.

I1 is closely related to the Colless index, which can be found using colless, or by multiplying I1 by

\frac{(N-1)(N-2)}{2}.

Usage

1
I1(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]]
I1(tree)

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