View source: R/simulation_tree_pd.R
| sim_tree_pd_cpp | R Documentation | 
super fast function to simulate the process of diversification with diversity dependence and phylogenetic diversity dependence
sim_tree_pd_cpp(pars, max_t, max_lin = 1e+06, max_tries = 100, useDDD = TRUE)
| pars | parameter vector with c(mu, lambda_0, beta_N, beta_P) | 
| max_t | crown age | 
| max_lin | number of lineages past which non-extinction is assumed. | 
| max_tries | maximum number of tries to get a non-extinct tree. | 
list with: 1) tes - reconstructed tree, 2) tas - tree with extinct lineages, 3) L = Ltable and 4) brts - branching times of the reconstructed tree and 5) status of simulation, options 1) "extinct", 2) "too_large" or 3) "done".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.