sim_tree_pd_grid: simulation function to simulate a tree under the pd model

View source: R/simulation_tree_pd.R

sim_tree_pd_gridR Documentation

simulation function to simulate a tree under the pd model

Description

super fast function to simulate the process of diversification with diversity dependence and phylogenetic diversity dependence

Usage

sim_tree_pd_grid(mu_vec, lambda_vec, b_n_vec, b_p_vec, max_t, num_repl, max_N)

Arguments

mu_vec

vector of extinction rates to explore

lambda_vec

vector of lambda rates to explore

b_n_vec

vector of B_n rates to explore

b_p_vec

vector of B_p rates to explore

max_t

crown age

num_repl

number of replicates

max_N

maximum number of lineages past which non-extinction is assumed.

Value

a list with the used parameter combinations, extinction of the phylogeny, and a vector with population size, time of extinction (equal to the crown #' age in the absence of extinction), and the phylogenetic diversity at the time of extinction (or crown age).


franciscorichter/emphasis documentation built on Feb. 19, 2024, 7:36 p.m.