There is a newer version of the record available.

Published February 28, 2019 | Version v1.0.0
Software Open

sensobol: Computation of High-Order Sobol' Sensitivity Indices

Authors/Creators

Description

sensobol

The goal of sensobol is to provide a set of functions to swiftly compute and visualize up to third-order Sobol' sensitivity indices. The functions allow to:

  • Create the sample matrices for the model evaluation.
  • Compute and bootstrap up to third-order effects.
  • Assess the approximation error of Sobol' indices.
  • Plot the model uncertainty and the Sobol' indices.

Installation

You can install the released version of sensobol as follows:

install.packages("devtools") # if you have not installed devtools package already
devtools::install_github("arnaldpuy/sensobol", build_vignettes = TRUE)

Example

This brief example shows how to compute Sobol' indices. For a more detailed explanation of the package functions, check the vignette.

## Create sample matrix
A <- sobol_matrices(n = 1000, 
k = 3, 
second = TRUE)

## Compute the model output (using the Ishigami test function):
Y <- ishigami_Mapply(A)

## Compute the Sobol' indices:
sens <- sobol_indices(Y = Y, 
params = colnames(data.frame(A)),
R = 100, 
n = 1000, 
second = TRUE)

Files

arnaldpuy/sensobol-v1.0.0.zip

Files (58.5 kB)

Name Size Download all
md5:17997c48f16d92e39fce79e8d18d34d3
58.5 kB Preview Download

Additional details

Related works

Funding

European Commission
SIZE - The role of size in the sustainability of irrigation systems 792178