DAISIE_probdist {DAISIE} | R Documentation |
The joint distribution of endemics and non-endemics under the DAISIE model
Description
This function calculates the joint distribution of the number of endemics and non-endemics for a given set of parameter values, a given mainland species pool size and a given set of times
Usage
DAISIE_probdist(pars1, pars2, tvec, initEI = c(0, 0), initprobs = NULL)
Arguments
pars1 |
Vector of model parameters: |
pars2 |
Vector of settings: |
tvec |
The times at which the probabilities need to be computed. |
initEI |
The initial values for the number of endemics and
non-endemics. In |
initprobs |
The initial probability distribution for the number of endemics and non-endemics; either this or initEI must be NULL. |
Details
To obtain a matrix of probabilities with endemics in rows and non-endemics in columns for a certain time, one can run DAISIE_convertprobdist
Value
A matrix of dimensions 1 + length(tvec) and pars[2]^2 + 1] where the first column contains the times at which the probabilities are evaluated and the other columns contain the joint probabilities.
Author(s)
Rampal S. Etienne
References
Valente, L.M., A.B. Phillimore and R.S. Etienne (2015). Equilibrium and non-equilibrium dynamics simultaneously operate in the Galapagos islands. Ecology Letters 18: 844-852.
Examples
### Compute the probability distribution at t = 4 and t = 8, for a mainland pool
# size of 250 potential colonists and a vector of 5 parameters (cladogenesis,
# extinction, clade-level carrying capacity, immigration, anagenesis) starting
# from an empty island
prob_dists <- DAISIE_probdist(
pars1 = c(0.3,0.35,Inf,0.75,0.012),
pars2 = c(100,250),
tvec = c(4,8),
initEI = c(0,0),
initprobs = NULL
)