get_config_mosquito_RM | R Documentation |
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.
get_config_mosquito_RM(path)
path |
a file path to a JSON file |
a named list
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.