run_metapop_simulation: Run a metapopulation model

View source: R/model.R

run_metapop_simulationR Documentation

Run a metapopulation model

Description

Run a metapopulation model

Usage

run_metapop_simulation(
  timesteps,
  parameters,
  correlations = NULL,
  mixing_tt,
  export_mixing,
  import_mixing,
  p_captured_tt,
  p_captured,
  p_success
)

Arguments

timesteps

the number of timesteps to run the simulation for (in days)

parameters

a list of model parameter lists for each population

correlations

a list of correlation parameters for each population (default: NULL)

mixing_tt

a vector of time steps for each mixing matrix

export_mixing

a list of matrices of coefficients for exportation of infectivity. Rows = origin sites, columns = destinations. Each matrix element describes the mixing pattern from destination to origin. Each matrix element must be between 0 and 1. Each matrix is activated at the corresponding timestep in mixing_tt

import_mixing

a list of matrices of coefficients for importation of infectivity.

p_captured_tt

a vector of time steps for each p_captured matrix

p_captured

a list of matrices representing the probability that travel between sites is intervened by a test and treat border check. Dimensions are the same as for export_mixing

p_success

the probability that an individual who has tested positive (through an RDT) successfully clears their infection through treatment

Value

a list of dataframe of model outputs as in run_simulation


mrc-ide/malariasimulation documentation built on Oct. 14, 2024, 7:33 p.m.