sackin
computes the Sackin's index on tree and normalizes it.sackin(tree, norm = NULL)
"treeshape"
on which the Sackin's index is computed."null"
(default) for no normalization, "pda"
for the PDA normalization or "yule"
for the Yule normalization.numeric
which contains the Sackin's index of the tree.colless
sackin.test
## Index of Sackin of a PDA tree :
tpda<-rtreeshape(1,tip.number=70,model="pda")
tpda<-tpda[[1]]
sackin(tpda,norm="pda")
## Histogram of the Sackin's indices for randomly generated Yule trees,
## with no normalization
main="Histogram of Sackin's indices for randomly generated Yule trees"
xlab="Sackin's index"
hist(sapply(rtreeshape(300,tip.number=50,model="yule"),FUN=sackin,norm="yule"),
freq=FALSE, main=main, xlab=xlab)
## Change the size of the trees:
hist(sapply(rtreeshape(300,tip.number=100,model="yule"),FUN=sackin,norm="yule"),
freq=FALSE, main=main, xlab=xlab)
Run the code above in your browser using DataLab