Learn R Programming

sensobol (version 1.1.5)

sobol_Fun: Sobol' G function

Description

It implements the Sobol1998;textualsensobol G function.

Usage

sobol_Fun(X)

Value

A numeric vector with the model output.

Arguments

X

A data frame or numeric matrix.

Details

The function requires eight model inputs and reads as $$y=\prod_{i=1}^{k} \frac{|4 x_i - 2| + a_i}{1 + a_i}\,,$$ where \(k=8\), \(x_i\sim\mathcal{U}(0,1)\) and \(a=(0, 1, 4.5, 9, 99, 99, 99, 99)\).

References

Examples

Run this code
# Define settings
N <- 100; params <- paste("X", 1:8, sep = "")

# Create sample matrix
mat <- sobol_matrices(N = N, params = params)

# Compute Sobol' G
Y <- sobol_Fun(mat)

Run the code above in your browser using DataLab