meanIprime: meanIprime

Description Usage Arguments Value References Examples

Description

This calculates the mean of I' (Purvis and Agapow, 2012) for a phylogenetic tree. This asymmetry metric uses a weighted average of the balance of internal nodes:

mean.Iprime = \frac{1}{(N-1)} ∑_{j \in \mathcal{I}} w_j \frac{\max(r_j,l_j)-m_j}{r_j+l_j-m_j-1},

where w_j = \frac{r_j+l_j-1}{r_j+l_j} if n is even and w_j = 1 if n is odd.

Usage

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

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