A stochastic individual-based model to demonstrate how the EasyABC functions can be used

This model is drawn from Jabot (2010) A stochastic dispersal-limited trait-based model of community dynamics. Journal of Theoretical Biology, 262, 650-661.
It represents the stochastic dynamics of an ecological community where each species is represented by a set of traits (i.e. characteristics) which determine its competitive ability.
The model requires four parameters: an immigration rate `I`

, and three additional parameters (`h`

, `A`

and *sigma*) describing the way traits determine species competitive ability.
The model additionnally requires two fixed variables: the total number of individuals in the local community `J`

and the number of traits used `n_t`

.
The model outputs four summary statistics: the species richness of the community `S`

, its Shannon's index `H`

, the mean of the trait value among individuals `MTV`

and the skewness of the trait value distribution `STV`

.
The simulation code `trait_model`

reads sequentially `J`

, `I`

, `A`

, `n_t`

, `h`

and *sigma*.

1 | ```
trait_model(input=c(1,500,1,1,1,1))
``` |

```
Loading required package: abc
Loading required package: abc.data
Loading required package: nnet
Loading required package: quantreg
Loading required package: SparseM
Attaching package: 'SparseM'
The following object is masked from 'package:base':
backsolve
Loading required package: MASS
Loading required package: locfit
locfit 1.5-9.1 2013-03-22
[1] 390.000000 5.874554 43.289400 5299.524589
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.