createPhyloCRBD: Create one phylogeny under the CRBD model

View source: R/simulatePhylogenies.R

createPhyloCRBDR Documentation

Create one phylogeny under the CRBD model

Description

Speciation and extinction rates are constant through time and lineages.

Usage

createPhyloCRBD(n.tips, params)

Arguments

n.tips

number of tips

params

list

  • $lambda: speciation rate

  • $mu: extinction rate

Value

phylogeny (ape format)

Examples

n.tips <- 10 # 10 extant species
lambda <- 1 # speciation rate
mu <- 0 # extinction rate
createPhyloCRBD(n.tips, list(lambda = lambda, mu = mu))

ilajaait/deephylo documentation built on April 10, 2022, 11:03 a.m.