View source: R/simulation_tree_pd.R
sim_tree_is_extinct_pd | R Documentation |
super fast function to simulate the process of diversification with diversity dependence and phylogenetic diversity dependence
sim_tree_is_extinct_pd(pars, max_t, num_repl = 1, max_lin)
pars |
parameter vector with c(mu, lambda_0, beta_N, beta_P) |
max_t |
crown age |
num_repl |
number of replicates |
max_lin |
number of lineages past which non-extinction is assumed. |
a tibble with five columns: 1) whether or not the tree went extinct, 2) the time of extinction (equal to the crown #' age in the absence of extinction), 3) the number of tips,4) the phylogenetic diversity at the
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.