sobol_replicas {sensobol} | R Documentation |
It creates a data.table
with all the bootstrap replicas.
sobol_replicas(dt, k, second = FALSE, third = FALSE)
dt |
The output of the |
k |
The number of parameters. |
second |
Logical. If |
third |
Logical. If |
A data.table
.
# Define settings: n <- 100; 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) # Extract the bootstrap replicas up to third-order replicas <- sobol_replicas(dt = sens, k = k, second = TRUE, third = TRUE)