Learn R Programming

GSA.UN (version 1.0.0)

GSAtool: Global Sensitivity Analysis tool

Description

This function performs the global sensitivity analysis starting from the gross results of the model.

Usage

GSAtool(
  parameters_set,
  out_set,
  pp_names,
  steps = 100,
  save = FALSE,
  dir = NULL
)

Arguments

parameters_set

matrix of dimensions n x pp, where n is the number of runs and pp is the number of parameters.

out_set

matrix of dimensions n x t, where n is the number of runs and t is the number of temporary steps.

pp_names

a strings vector with the names of the parameters of the model

steps

number of divisions of the parametric range.

save

T to save the results in .csv files, by default save=F.

dir

a directory to save the results

Value

a list containing two outputs: SOBOL and AMA indices.

References

Dell<U+2019>Oca, A., Riva, M., & Guadagnini, A. (2017). Moment-based metrics for global sensitivity analysis of hydrological systems. Hydrology and Earth System Sciences, 21(12), 6219<U+2013>6234. https://doi.org/10.5194/hess-21-6219-2017

Sobol, I. M. (2001). Global sensitivity indices for nonlinear mathematical models and their Monte Carlo estimates. Mathematics and Computers in Simulation, 55(1<U+2013>3), 271<U+2013>280. https://doi.org/10.1016/S0378-4754(00)00270-6

Examples

Run this code
# NOT RUN {
data("parameters_set", "out_set", "pp_names")
# }
# NOT RUN {
GSA_results <- GSAtool(parameters_set, out_set, pp_names, steps = 15, save=FALSE)
# }

Run the code above in your browser using DataLab