View source: R/g3_sensitivity.R
g3_sensitivity | R Documentation |
g3_sensitivity
performs a sensitivity analysis for a single parameter.
g3_sensitivity(
gd,
outdir = "SENS",
model,
params,
par_name,
par_values,
use_parscale = TRUE,
method = "BFGS",
control = list(),
serial_compile = FALSE,
return_input_parameters = FALSE,
run_optimisations = TRUE,
mc.cores = parallel::detectCores()
)
gd |
Directory to store output |
outdir |
Directory name within gd to store run outputs |
model |
A G3 model, produced by g3_to_tmb() or g3_to_r() |
params |
Initial parameters to use with the model, this should be a TMB parameter template i.e. attr(tmb_model, 'parameter_template') |
par_name |
A glob-like string to match parameter names, see the 'name_spec' argument for |
par_values |
A vector of values to substitute into params |
use_parscale |
Logical indicating whether optim(control$parscale) should be used |
method |
The optimisation method, see |
control |
List of control options for optim, see |
serial_compile |
g3_tmb_adfun will be run in serial mode (i.e., not in parallel), potentially helping with memory issues |
return_input_parameters |
If TRUE, returns a list of modified parameter dataframes (i.e. without optimisations) |
run_optimisations |
If TRUE, will return a list of fits using the modified (non-optimised) parameters |
mc.cores |
The number of cores to use, defaults to the number available |
A list of parameter dataframes (either optimised or not) or a list of fits based on the unoptimised parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.