Description Usage Arguments Value
Function used to submit jobs, solving the global model with specified parameters. This particular function is intended to test different values of amp and epsilon, which is why they are amongst the first arguments. To write your own function which can be submitted to the cluster, simply place the parameters that you want to change as the first few arguments.
1 2 3 4 5 6 | calibrating_amp_and_travel(runName, amp, epsilon, n_runs, time_params,
seasonality_params, life_history_params, travel_params, simulation_flags,
vax_params, vax_production_params, vax_allocation_params,
user_specified_cum_vax_pool_func, user_specified_vax_alloc_func,
seed_params, calculate_summaries_func, postprocessing_func, other_info,
output_prefix)
|
runName |
the base of the filename to save outputs to. Will be appended to "outputs/calibration_". DO NOT SPECIFY A FILE EXTENSION - THIS IS HANDLED IN THE FUNCTION |
amp |
the amplitude of seasonal forcing |
epsilon |
connectivity of off-diagonal elements in the travel matrix |
n_runs |
number of simulations to run for this set of parameters |
time_params |
list of parameters to do with time steps in simulation. |
seasonality_params |
list of seasonality parameters. contains the elements tdelay (0 <= tdelay <= 364): shifts the seasonality function - changing this effectively changes the seed time. tdelay = 0 is seed at t = 0 in sinusoidal curve, roughly start of autumn in Northern hemisphere division: Average seasonality into this many blocks of time amp: amplitude of seasonality |
life_history_params |
named vector (or list) with the numeric elements "R0", "TR" (time to recovery) and "LP" (latent period) |
travel_params |
list of parameters relating to travel. This should have the following elements: 1) epsilon, which scales the off-diagonals of the travel matrix |
simulation_flags |
named vector (or list) with the logical elements "normaliseTravel" and "seasonal" |
vax_params |
named vector (or list) with the numeric elements "efficacy" and "propn_vax0" (initial proportion of vaccinated individuals; assumed constant across location, age and risk groups) |
vax_production_params |
named vector (or list) with named elements matching the arguments of user_specified_cum_vax_pool_func |
vax_allocation_params |
named vector (or list) with named elements matching the arguments of user_specified_vax_alloc_func |
user_specified_cum_vax_pool_func |
function or character string of function to produce vaccine pool |
user_specified_vax_alloc_func |
function or character string of function to allocate vaccines |
seed_params |
named vector (or list) of parameters to do with seeding the pandemic. contains the elements seedCountries: vector of country names in which to seed |
calculate_summaries_func |
string specifying what function to use to calculate summaries. |
postprocessing_func |
character string specifying function to do postprocessing |
other_info |
list which provides any other information needed, such as to calculate the summaries |
output_prefix |
character vector of length 1. Prefix for output filenames |
returns TRUE if the routine runs correctly. Will create a .csv file of peak time summaries for this run, and a .png plotting the distribution of peak times by country. The output filenames are: 1) outputs/calibration_***runName***_data.csv 2) outputs/calibration_***runName***_plot.png
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.