Explore scenarios using gridding with sampling for parameters not in the grid. Parameters that are included in the grid are currently hard coded. Use the future package to control parallisation outside of the function.

parameter_sweep(scenarios = NULL, samples = 1, sim_fn = NULL)

Arguments

scenarios

A dataframe containing all gridded scenarios - see the examples for the required structure. Defaults to NULL.

samples

Numeric, defaults to 1. The number of samples to take.

sim_fn

Function, defaults to NULL. The vectorised model simulation function - see the examples for usage.

Value

A nested tibble containing the parameters for each scenario and a nested list of output from wuhan_sim.

Examples