run_simulations: run_simulation.R

Description Usage Arguments Value

View source: R/runSimulation.R

Description

Run agent-based models 'nsim' times under the different scenarios provided by the user

Usage

1
2
3
4
5
6
7
8
9
run_simulations(
  init,
  param,
  scenario_simulation,
  intervention_start = 0,
  prop_male,
  nsteps = 52 * 5,
  nsim = 100
)

Arguments

init

A list including the initial conditions of the simulation: prevalence of the infection, maximum span of infection considered, initial size of the cohort simulated

param

A list including the biological and intervention parameters, along with the age-sex-specific death rates

scenario_simulation

Character vector indicating which scenario is being considered for the simulation

intervention_start

A numeric value indicating at which time step the intervention starts (i.e. when the simulation starts using the intervention parameters over the baseline parameters) [default = 0]

prop_male

A numeric value indicating what share of the population is male This value is currently scraped from the UNAIDS indicators

nsim

[default = 1000]

n_steps

A numeric value indicating the duration of the intervention [default = 52*5], i.e. 5 years

Value

This function returns the out collecting the summary outcomes of interest


grlurton/ImpactSimul documentation built on March 8, 2021, 12:05 a.m.