Learn R Programming

laser (version 2.4-1)

yuleSim: yuleSim

Description

Simulate Branching Times Under the Pure Birth Model

Usage

yuleSim(ntaxa, nsets, lambda = 0.01)

Arguments

ntaxa
number of taxa in each set of branching times
nsets
number of datasets of size ntaxa to be simulated
lambda
speciation rate (default = 0.01)

Value

an n x m matrix of branching times, where n is size ntaxa and m is size nsets

Examples

Run this code
  testdata <- yuleSim(25, 50, lambda = .001)

Run the code above in your browser using DataLab