sim_envidiv_tree: simulate a tree using the environmental diversification model

Description Usage Arguments Value

View source: R/sim_envidiv_tree.R

Description

simulate a tree using the environmental diversification model

Usage

1
sim_envidiv_tree(params, crown_age, max_lin = 500, abc = FALSE, seed = NULL)

Arguments

params

parameters used to simulate:

  • extinctionper lineage extinction rate

  • sympatric speciation rate at high waterper lineage rate of speciation when the water level is high

  • sympatric speciation rate at low waterper lineage rate of speciation when the water level is low

  • allopatric speciation rateper allopatric pair rate of speciation

  • perturbationstandard deviation of post-hoc branching time perturbation

  • water modelWater model: 1) no water level changes, 2) literature water level change, 3) extrapolated water level changes

crown_age

age of the crown of the tree

max_lin

maximum number of extant lineages in the tree.

abc

(boolean) is the tree simulated in an ABC fitting scheme, or not? additional verbal output is provided if not.

seed

random nmber seed

Value

phy object


thijsjanzen/enviDiv documentation built on Sept. 10, 2020, 11:23 p.m.