Description Usage Arguments Value Examples
View source: R/phylo_functions.r
For simulating coalescent times using the method of thinning. 
This function is based on code written by Michael Karcher for the phylodyn package.
1  | coaltimeSim(samp_times, n_sampled, traj, lower_bound, ...)
 | 
samp_times | 
 numeric vector of sampling times.  | 
n_sampled | 
 numeric vector of samples taken per sampling time.  | 
traj | 
 function that returns effective population size at time t.  | 
lower_bound | 
 numeric lower limit on   | 
... | 
 additional arguments to be passed to   | 
A list containing vectors of coalescent times coal_times, 
intercoalescent times intercoal_times, and number of active lineages
lineages, as well as passing along samp_times and
n_sampled.
1  | coaltimeSim(0:2, 3:1, unif_traj, lower_bound=10, level=10)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.