create_bd_tree: Create a (constant-rate) birth-death (BD) tree

View source: R/create_generative_trees.R

create_bd_treeR Documentation

Create a (constant-rate) birth-death (BD) tree

Description

Create a (constant-rate) birth-death (BD) tree

Usage

create_bd_tree(n_taxa = 6, crown_age = 10, n_0 = 2, mu = 0.1)

Arguments

n_taxa

number of tree tips

crown_age

the fixed crown age of the posterior. Set to NA to let it be estimated

n_0

number of starting species

mu

per-species extinction rate

Value

a phylogenetic tree of type phylo

Author(s)

Giovanni Laudanno, Richèl J.C. Bilderbeek

Examples

n_taxa <- 31
crown_age <- 41
phylogeny <- create_bd_tree(
  n_taxa = n_taxa,
  crown_age = crown_age
)

richelbilderbeek/pirouette documentation built on Oct. 18, 2023, 3:09 p.m.