global_sensitivity: Run global sensitivity analysis

Description Usage Arguments Value

View source: R/fn_sensitivity.R

Description

Generate and run simulations over a set of varying parameters. It runs in parallel using the snow and foreach packages.

Usage

1
2
3
global_sensitivity(par.ls, nSamp, ngrid, ncell, g.p, lc.df, sdd = NULL,
  cell.init, control.p = NULL, save_yrs = NULL, verbose = FALSE,
  sim.dir = "out/")

Arguments

par.ls

List output from set_par_ranges with parameter to perform the sensitivity analysis on

nSamp

10 Number of randomly generated parameter sets

ngrid

Number of grid cells in entire map

ncell

Number of inbound grid cells

g.p

Named list of global parameters set with set_g_p. The value of parameter p will be updated within the loop for each value in p.seq.

lc.df

Dataframe or tibble with xy coords, land cover proportions, and cell id info

sdd

NULL Output with short distance dispersal neighborhoods created by sdd_set_probs. If NULL, sdd neighborhoods are calculated

cell.init

Vector with grid id of cells populated at t=0

control.p

NULL or named list of buckthorn control treatment parameters set with set_control_p

save_yrs

NULL Years to store full abundances for. If NULL, only grid-wide summaries are stored. Else, the total adult per-cell N is stored for the specified years.

verbose

FALSE Give updates?

sim.dir

"out/sims/" Directory to store simulation output

Value

list with elements out containing the full output from run_sim, and results containing the parameter sets and simulation summaries


Sz-Tim/gbPopMod documentation built on Dec. 7, 2020, 1:07 p.m.