Description Usage Arguments Value Author(s) See Also Examples
Simulating the protracted speciation process according to the approxiomate model of Lambert et al. 2014. This function differs from pbd_sim that 1) it requires that the speciation-initiation rate is the same for good and incipient species, and 2) that it does not simulate the exact protracted speciation process, but an approximation made by the coalescent point process.
1 2 3 4 5 6 7 8 9 |
pars |
Vector of parameters: |
parsf |
Vector of functions how the rates depend on time, default functions are constant functions of the parameters in pars1: |
age |
Sets the crown age for the simulation |
soc |
Determines whether the simulation should start at stem (1) or crown (2) age |
plotltt |
Sets whether the lineage-through-time plot should be plotted (1) or not (0) |
methode |
Sets which method should be used in the ode-solver. Default is 'lsoda'. See package deSolve for details. |
A set of branching times
Rampal S. Etienne
1 | pbd_sim_cpp(pars = c(0.2,1,0.2,0.1),age = 15)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.