disease_transitions {epizootic} | R Documentation |
Nested functions for stage- and compartment-based population transitions in an outbreak.
Description
Modular functions for the disease simulator to transition populations between stages and within disease compartments.
Usage
disease_transitions(stages, compartments)
Arguments
stages |
Number of life cycle stages. |
compartments |
Number of disease compartments. |
Value
Transition calculation function that takes as input:
segment_abundance
Matrix of (current) abundance for each stage-compartment combo (rows) and population (columns) at time step.
occupied_indices
Array of indices for populations occupied at (current) time step.
[Package epizootic version 1.0.0 Index]