sim.fbd.taxa: sim.fbd.taxa: Simulating fossilized birth-death trees on a...

Description Usage Arguments Value Examples

View source: R/sim.fbd.R

Description

sim.fbd.taxa: Simulating fossilized birth-death trees on a fixed number of extant taxa.

Usage

1
sim.fbd.taxa(n, numbsim, lambda, mu, psi, frac = 1, complete = FALSE)

Arguments

n

Number of extant sampled tips.

numbsim

Number of trees to simulate.

lambda

Speciation rate.

mu

Extinction rate.

psi

Fossil sampling rate.

frac

When complete = FALSE: The actual number of extant tips is n/frac, but only n tips are included (incomplete sampling). When complete = TRUE: all extinct and non-sampled lineages are included, i.e. the tree has n/frac extant tips.

complete

If TRUE, the tree with the extinct and non-sampled lineages is returned. If FALSE, the extinct lineages are suppressed.

Value

List of numbsim simulated SAtrees with n extant sampled tips.

Examples

1
2
3
4
5
6
n = 10
lambda = 2.0
mu = 0.5
psi = 0.6
numbsim = 2
sim.fbd.taxa(n, numbsim, lambda, mu, psi)

rachelwarnock/fossilsim documentation built on Oct. 27, 2019, 9:26 a.m.