Skip to contents

Run plague model simulation

Usage

run_plague_model(
  scenario = "defaults",
  years = 10,
  timestep = c("weekly", "daily"),
  include_humans = FALSE,
  npop = 1,
  contact_matrix = NULL,
  n_particles = 100,
  n_threads = 1,
  seasonal = FALSE,
  K_r = 2500,
  K_h = 5000,
  I_ini = 1,
  seasonal_amplitude = 1,
  ...
)

Arguments

years

Number of years to simulate (default 10)

timestep

Time step resolution: "weekly" or "daily" (default "weekly")

include_humans

Logical, include human dynamics (only npop = 1 supported)

npop

Number of populations (1 for single population, >1 for spatial)

contact_matrix

Contact matrix for multi-population models (auto-generated if NULL and npop = 25)

n_particles

Number of particles for stochastic models

n_threads

Number of threads for parallel processing

seasonal

Logical, include seasonal forcing

...

Additional parameters to override

params

Parameter set name, file path, or list of parameters

Value

plague_results object