Description Usage Arguments Value References Examples
Forward simulates a tree until a provided time is reached.
1 2 3 | sim_stBD_t(sbr, sdr, numbsim, t)
sim_sptree_bdp_time(sbr, sdr, numbsim, t)
|
sbr |
species birth rate (i.e. speciation rate) |
sdr |
species death rate (i.e. extinction rate) |
numbsim |
number of species trees to simulate |
t |
time to simulate to |
List of objects of the tree class (as implemented in APE)
K. Hartmann, D. Wong, T. Stadler. Sampling trees from evolutionary models. Syst. Biol., 59(4): 465-476, 2010.
T. Stadler. Simulating trees on a fixed number of extant species. Syst. Biol., 60: 676-684, 2011.
1 2 3 4 5 6 7 8 9 | mu <- 0.5 # death rate
lambda <- 2.0 # birth rate
numb_replicates <- 10
time <- 1
tree_list <- sim_stBD_t(sbr = lambda,
sdr = mu,
numbsim = numb_replicates,
t = time)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.