get_config_mosquito_RM: Get parameters for generalized Ross-Macdonald mosquito model

View source: R/mosquito_RM.R

get_config_mosquito_RMR Documentation

Get parameters for generalized Ross-Macdonald mosquito model

Description

The JSON config file should have 8 entries:

  • stochastic: a boolean value

  • f: scalar

  • q: scalar

  • eip: scalar or vector; see time_varying_parameter for valid formats

  • p: scalar or vector; see time_varying_parameter for valid formats

  • psi: matrix

  • nu: scalar

  • M: vector

  • Y: vector

  • Z: vector

For interpretation of the entries, please read setup_mosquito_RM.

Usage

get_config_mosquito_RM(path)

Arguments

path

a file path to a JSON file

Value

a named list

Examples

# to see an example of proper JSON input, run the following
library(jsonlite)
t <- 10 # days to simulate
p <- 5 # number of patches
EIP <-  rep(5, t)
p_surv <- 0.95
psi <- matrix(rexp(p^2), nrow = p, ncol = p)
psi <- psi / rowSums(psi)
par <- list(
 "stochastic" = FALSE,
 "f" = 0.3,
 "q" = 0.9,
 "eip" = EIP,
 "p" = p_surv,
 "psi" = psi,
 "nu" = 20,
 "M" = rep(100, p),
 "Y" = rep(20, p),
 "Z" = rep(5, p)
)
toJSON(par, pretty = TRUE)

MicroMoB documentation built on Jan. 17, 2023, 9:06 a.m.