sim_stBD_t: Simulates species tree using constant rate birth-death...

Description Usage Arguments Value References Examples

View source: R/RcppExports.R

Description

Forward simulates a tree until a provided time is reached.

Usage

1
2
3
sim_stBD_t(sbr, sdr, numbsim, t)

sim_sptree_bdp_time(sbr, sdr, numbsim, t)

Arguments

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

Value

List of objects of the tree class (as implemented in APE)

References

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.

Examples

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)

treeducken documentation built on March 3, 2021, 1:11 a.m.