disease_transitions: Nested functions for stage- and compartment-based population...

View source: R/disease_transitions.R

disease_transitionsR 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.


epizootic documentation built on Oct. 2, 2024, 5:07 p.m.