In both cases, the inputs required are a model list object created by the e2e_read() function defining the model configuration and relevant model.ident
argument to point to the required files, and a logical argument to determne the origin of data files (either saved as csv files in the user workspace, or
example data for the North Sea model provided with the package.
Details relating to sensitivity analysis plot:
The function reads processed results generated by the function e2e_run_sens(), or the function e2e_process_sens_mc(...,selection="SENS"), and plots the Elementary Effect mean (x-axis; magnitude of sensitivity)
against Elementary Effect standard deviation (y-axis; strength of interactions between parameters).
Processed results from the function e2e_run_sens(), or the function e2e_process_sens_mc(...,selection="SENS"), are stored in the csv file
../Modelname/Variantname/sorted_parameter_elementary_effects-*.csv
where * represents the model run identifier (model.ident) text embedded in the R-list object created by the e2e_read() function. The path to this file
is relative to the results folder specified in teh e2e_read() function call.
Each symbol in the plot represents a single parameter in the model. The parameters are colour-coded to indicate 6 different types - fitted and fixed
parameters of the ecology model, fishing fleet model parameters, fishery harvest ratios, environmental drivers, and physical configuration parameters.
The plot also shows a wedge formed by the two dashed lines. These correspond to +/-2 standard errors of the mean, so for points falling outside of the
wedge there is a significant expectation that the distribution of elementary effects is non-zero. For points falling within the wedge the distribution of
elementary effects is not significantly different from zero.
For details of how the Elementary Effect values are derived for each parameter see help(e2e_run_sens)
Details relating to Monte Carlo analysis plot:
The function creates a plot showing the credible distributions of ecology model parameters based on the results from the e2e_run_mc() function.
These distributions are formed from the input distributions to the Monte Carlo process, weighted by the likelihood of observed target data
on the state of the ecosystem given each combination of parameter values.
Post-processed data from the e2e_run_mc() function are stored in the file
../Modelname/Variantname/CredInt/CredInt_processed_PARAMETERresults_data-*.csv, where * represents the model run identifier
(model.ident) text embedded in the R-list object created by the e2e_read() function. The path to this file
is relative to the results folder specified in teh e2e_read() function call.
Each parameter in the plot is scaled to its baseline value as (value - baseline)/baseline. Ideally, the baseline is the maximum likelihood model
developed by application of the optimization functions available in the package (e.g. e2e_optimize_eco()).
Each parameter is then represented by a box and whisker plot which shows the distribution of credible parameter values around zero, i.e.
around the baseline. The median of the credible values distribution for each parameter
is shown my a black tick-mark. The box spans the 50
of simulated values). Whisker lines span the 99
The individual parameters are identified by numbers (rather than text names). These numbers correspond to the column numnbers in
the file ../Modelname/Variantname/CredInt/CredInt_processed_parameters-*.csv . Details of the parameters associated with each identification
number are available as a dataframe by using the function e2e_get_parmdoc().
The input distribution of parameter values to the Monte Carlo process is drawn from a random uniform distribution with limits specified in
the monte_carlo control file for the model setup (located in a sub-folder of the /Param/control folder). This distribution is shown by
a red box and whisker at the bottom of the plot. Given the random uniform input we expect the quartiles (limits of the box) to be symetrical
and located mid-way between zero and the upper and lower extremes. Vertical red lines show the expected limits of the quartiles boxes if
model results were completely insensitive to individual parameter values.
The extent to which individual parameter distributions deviate from the random uniform input is an indication of their sensitivity in the model.
Parameters whose distributions are tightly confined around zero (the baseline value) are highly sensitive.
For some parameters, in particular the preference parameters, their credible distributions may span a wider range than the inputs. This may seem
unexpected, but arises because within each feeding guild the preference parameters are not independent of each other. The preferences within each guild
must sum to 1. Hence, during the Monte Carlo process, after drawing new values of the preference values they are all rescaled to sum to 1, which may mean that
some of them will have been varied by more than the original coefficient of variation of the input random uniform.
For details of how the distribution of credible output values from StrathE2E are calculated see the help information for the e2e_run_mc() function.