simulateSOI | R Documentation |
Generate time-series with The Self-Organised Instability (SOI) model. Implements a K-leap method for accelerating stochastic simulation.
simulateSOI(
n_species,
x0 = NULL,
names_species = NULL,
carrying_capacity = 1000,
A = NULL,
k_events = 5,
t_end = 1000,
metacommunity_probability = runif(n_species, min = 0.1, max = 0.8),
death_rates = runif(n_species, min = 0.01, max = 0.08),
norm = FALSE
)
n_species |
Integer: number of species |
x0 |
|
names_species |
Character: names of species. If NULL,
|
carrying_capacity |
|
A |
|
k_events |
|
t_end |
|
metacommunity_probability |
|
death_rates |
|
norm |
|
simulateSOI
returns a TreeSummarizedExperiment class object
# Generate interaction matrix
A <- miaSim::powerlawA(10, alpha = 1.2)
# Simulate data from the SOI model
tse <- simulateSOI(
n_species = 10, carrying_capacity = 1000, A = A,
k_events = 5, x0 = NULL, t_end = 150, norm = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.