run_fixed_params: submit job with fixed parameters

Description Usage Arguments Value

View source: R/run_funcs.R

Description

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.

Usage

1
2
3
4
5
run_fixed_params(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, other_info)

Arguments

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.

other_info

list which provides any other information needed, such as to calculate the summaries

Value

returns a list containing the elements res: summary statistics for each run processed_inputs: results of pre-processing which might be needed for downstream analysis


jameshay218/vaxedemic documentation built on Jan. 30, 2020, 2:58 a.m.