View source: R/disease_transformation.R
disease_transformation | R Documentation |
Modular functions for the disease simulator for performing a transformation of a population across stages and disease compartments (and optionally carrying capacity) at a specified time step via a user-defined function.
disease_transformation(params)
params |
A list of parameters, which must contain all of the below,
except
|
Abundance (and capacity) transformation function:
function(r, tm, carrying_capacity, segment_abundance,
occupied_indices)
, where:
r
Simulation replicate.
tm
Simulation time step.
carrying_capacity
Array of carrying capacity values for each population at time step.
segment_abundance
Matrix of abundance for each stage-compartment combo (rows) and population (columns) at time step.
occupied_indices
Array of indices for populations occupied at time step.
returns
List with transformed stage abundance matrix (and optionally carrying capacity).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.