View source: R/test_functions.R
sobol_Fun | R Documentation |
It implements the \insertCiteSobol1998;textualsensobol G function.
sobol_Fun(X)
X |
A data frame or numeric matrix. |
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)
.
A numeric vector with the model output.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.