Description Usage Arguments Details Value Author(s) See Also

Compute the set of pairwise dissimilarities across all observations in a tree. Each dissimilarity measures the extent to which observations are "far apart" in the tree: the dissimilarity is 0 if the pair land in the same leaf, 1 if they land on leaves that have only the root as common ancestors, and otherwise something intermediate.

1 |

`mytree` |
Output from "tree" |

`return.pd` |
If TRUE return the matrix of pairwise distances among leaves. Useful for debugging. Default FALSE. |

Two observations have distance 0 if they fall in the same leaf; otherwise, the distance measures the ratio of the deviance of a tree trimmed so that they do fall in the same leaf to the deviance of the original tree.

Item of class "dist" giving inter-point distances.

Sam Buttrey

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.