DAISIE_margprobdist2 {DAISIE} | R Documentation |
The probability distribution of the number of endemics and non-endemics under the DAISIE model
Description
This function calculates the probability distribution of the number of endemics, non-endemics and the sum of these for a given set of parameter values, a given mainland species pool size and a given time, where there can be diversity-dependence
Usage
DAISIE_margprobdist2(
tvec,
pars,
M,
initEI_mat = NULL,
res = 1000,
ddmodel = 11,
methode = "ode45",
reltolint = 1e-16,
abstolint = 1e-16
)
Arguments
tvec |
The times at which the probabilities need to be computed. |
pars |
A numeric vector containing the model parameters:
Elements 6:10 are required only when type 2 species are included
or in the rate shift model. For |
M |
Numeric defining the size of mainland pool, i.e. the number of species that can potentially colonize the island. |
initEI_mat |
matrix where each row represents the initial number of endemic and non-endemic species per colonizing lineage. |
res |
Sets the maximum number of species for which a probability must be computed, must be larger than the size of the largest clade. |
ddmodel |
Sets the model of diversity-dependence:
|
methode |
Method of the ODE-solver. Supported Boost |
reltolint |
Numeric relative tolerance of the integration |
abstolint |
Numeric absolute tolerance of the integration |
Value
probsEIN |
The output is a list with three elements: |
Author(s)
Rampal S. Etienne
Examples
DAISIE_margprobdist2(tvec = c(0.000001,0.5,0.75,1),
pars = c(0.3,0.1,10,1,0.1),
M = 1000,
initEI_mat = rbind(c(1,0),c(2,0),c(0,1)))