sim_tree_pd_R: simulation function to simulate a tree under the pd model,...

View source: R/simulation_tree_pd.R

sim_tree_pd_RR Documentation

simulation function to simulate a tree under the pd model, returns the full tree.

Description

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

Usage

sim_tree_pd_R(pars, max_t)

Arguments

pars

parameter vector with c(mu, lambda_0, beta_N, beta_P)

max_t

crown age

Value

a list with 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 Jan. 6, 2025, 7:06 p.m.