genYuleTree {poweRbal}R Documentation

Generation of rooted binary trees under the Yule model

Description

genYuleTree - Generates a rooted binary tree in phylo format with the given number of n leaves under the Yule model. The Yule process is a simple birth-process in which all species have the same speciation rate.
Due to the restrictions of the phylo or multiphylo format the number of leaves must be at least 2 since there must be at least one edge.

Usage

genYuleTree(n)

Arguments

n

Integer value that specifies the desired number of leaves, i.e., vertices with in-degree 1 and out-degree 0.

Value

genYuleTree A single tree of class phylo is returned.

Author(s)

Sophie Kersting

References

Examples

genYuleTree(n = 5)

[Package poweRbal version 0.0.0.3 Index]