disease_transitions {epizootic} | R Documentation |
Modular functions for the disease simulator to transition populations between stages and within disease compartments.
disease_transitions(stages, compartments)
stages |
Number of life cycle stages. |
compartments |
Number of disease compartments. |
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.