sobol_ci {sensobol} | R Documentation |
It computes bootstrap confidence intervals for Sobol' indices.
sobol_ci(b, params, type, conf, second = FALSE, third = FALSE)
b |
The output of the |
params |
A vector with the name of the model inputs. |
type |
A vector of character strings representing
the type of intervals required. The value should be any subset
of the values |
conf |
A scalar or vector containing the confidence level(s) of the required interval(s). |
second |
Logical. If |
third |
Logical. If |
A data table.
# Define settings: n <- 1000; k <- 8; R <- 100 # Design the sample matrix: A <- sobol_matrices(n = n, k = k, second = TRUE, third = TRUE) # Compute the model output: Y <- sobol_Fun(A) # Compute the Sobol' indices: sens <- sobol_indices(Y = Y, params = colnames(data.frame(A)), R = R, n = n, parallel = "no", ncpus = 1, second = TRUE, third = TRUE) # Compute confidence intervals: sobol_ci(sens, params = colnames(data.frame(A)), type = "norm", conf = 0.95)