Usage
pbd_sim_cpp(
pars,
parsf = c(function(t,pars) {pars[1]},function(t,pars) {pars[2]},
function(t,pars) {pars[3]},function(t,pars) {pars[4]}),
age,
soc = 2,
plotltt = 1,
methode = "lsoda"
)
Arguments
pars
Vector of parameters:
pars[1]
corresponds to b (= la_1 in Etienne & Rosindell R2012) = speciation initiation rate
pars[2]
corresponds to mu_1 (= mu_g in Etienne & Rosindell 2012) = extinction rate of good species
pars[3]
corresponds to la_1 (= la_2 in Etienne & Rosindell 2012) = speciation completion rate
pars[4]
corresponds to mu_2 (= mu_i in ER2012) = extinction rate of incipient species
When rates depend on time this time dependence should be specified in pars1f and pars1 then becomes the parameters used in pars1f
parsf
Vector of functions how the rates depend on time, default functions are constant functions of the parameters in pars1:
parsf[1]
corresponds to time-dependence of b (= la_1 in Etienne & Rosindell R2012) = speciation initiation rate
parsf[2]
corresponds to time-dependence of mu_1 (= mu_g in Etienne & Rosindell 2012) = extinction rate of good species
parsf[3]
corresponds to tiem-dependence of la_1 (= la_2 in Etienne & Rosindell 2012) = speciation completion rate
parsf[4]
corresponds to time-dependence of mu_2 (= mu_i in ER2012) = extinction rate of incipient species
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.