STEPCAM_ABC {STEPCAM} | R Documentation |
ABC-SMC inference of the STEPCAM model
Description
ABC-SMC inference of the relative contribution of stochasticy (or random removal), filtering and limiting similarity (e.g. of shared resources (competition) or predators) through the use of stepwise commmunity assembly and fitting Functional Diversity patterns of simulated communities with those of observed communities. It takes quite a lot of computing time to run this function, so it is recommended to first run it for a very simple (species poor, artificial) dataset (see example).
Usage
STEPCAM_ABC(data_abundances, data_species, numParticles, n_traits,
plot_number, stopRate,
stop_at_iteration,
continue_from_file)
Arguments
data_abundances |
|
data_species |
|
numParticles |
The number of particles to be used in the ABC-SMC analysis. |
n_traits |
The number of traits used in the analysis. |
plot_number |
Row number of the plot for which we want to infer the contributions of stochasticity, filtering and competition. |
stopRate |
The SMC procedure stops as soon as the acceptance rate of newly proposed parameter combinations drops below this level. Beware that low values for this parameter might lead into long computation times. |
stop_at_iteration |
If the user instead wants to perform a fixed number of iterations, this parameter sets the maximum number of iterations (the SMC stops when either the maximum number of iterations is reached, or the acceptance rate drops below the stopRate, whatever happens first) |
continue_from_file |
Should the ABC-SMC algorithm continue from previous output of the STEPCAM_ABC function? |
Value
DA |
Posterior distribution of the relative contribution of dispersal assembly (random removal steps) to community assembly |
HF |
Posterior distribution of the relative contribution of habitat filtering to community assembly |
LS |
Posterior distribution of the relative contribution of limiting similarity to community assembly |
Author(s)
Thijs Janzen & Fons van der Plas + Torsten Hauffe
References
Fons van der Plas, Thijs Janzen, Alejandro Ordonez, Wimke Fokkema, Josephine Reinders, Rampal S. Etienne, and Han Olff 2015. A new modeling approach estimates the relative importance of different community assembly processes. Ecology 96:1502-1515.
Examples
## Not run:
Artificial.Data <- generate.Artificial.Data(n_species = 40, n_traits = 3,
n_communities = 5, occurence_distribution = 0.2,
average_richness = 0.5, sd_richness = 0.2,
mechanism_random=FALSE)
O <- STEPCAM_ABC(Artificial.Data$abundances, Artificial.Data$traits,
numParticles = 10, n_traits = 3, plot_number = 1, stopRate = 0.8)
## End(Not run)