Learn R Programming

apTreeshape (version 1.5-0.1)

summary.treeshape: Print a summary of an object of class "treeshape"

Description

This function prints a compact summary of a phylogenetic tree of class "treeshape")

Usage

# S3 method for treeshape
summary(object, …)

Arguments

object

an object of class "treeshape".

...

further arguments passed to or from other methods.

Value

A NULL value is returned, the results are simply printed.

Details

summary.treeshape prints the following information: the number of tips of the tree, its Colless' index, and the expected values and standard deviations of the Colless' index under the PDA and Yule models.The expected value of the Colless' index under the Yule model is given according to the formula: \(n*\log{n}+n*(\gamma-1-\log{2})\) where n is the number of tips of the tree and \(\gamma\) the Euler's constant. The standard deviation under the Yule model is given by: \(\sqrt{(3-\frac{\pi^2}{6}-\log{2})*n}\). The expected value of the Colless' index under the PDA model is given according to the formula: \(\sqrt{\pi}*n^{3/2}\). The standard deviation under the PDA model is given by: \(\sqrt{\frac{10}{3}-\pi}*n^{3/2}\).

See Also

summary colless for more informations about the expected values under the Yule and PDA models.

Examples

Run this code
# NOT RUN {
## Summary of a PDA tree with 100 tips.
summary(rpda(100)) 
## Note that the standard deviation is very large. 

## Summary of a Yule tree with 100 tips.
summary(ryule(100)) 
## The standard deviation under the Yule model is much smaller than under 
##      the PDA model.

## Summary of the HIV tree.
data(hivtree.treeshape)
summary(hivtree.treeshape) 
## The HIV tree is much closer from the Yule model than from the PDA model. 
# }

Run the code above in your browser using DataLab