sobol_Fun: Sobol' G function

View source: R/test_functions.R

sobol_FunR Documentation

Sobol' G function

Description

It implements the \insertCiteSobol1998;textualsensobol G function.

Usage

sobol_Fun(X)

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).

Value

A numeric vector with the model output.

References

\insertAllCited

Examples

# 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)

arnaldpuy/sensobol documentation built on Feb. 24, 2024, 12:32 a.m.