powered by
Estimate first-order and total-order Sobol indices using Monte Carlo estimators that support noisy outputs via independent replicates.
sobol_indices( model, design, replicates = 1L, estimator = c("jansen", "saltelli"), keep_samples = FALSE, ... )
An object of class sobol_result containing the indices, intermediate estimates, and the Monte Carlo variance.
sobol_result
Function receiving a numeric matrix and returning a numeric vector of responses. The function may include internal randomness.
Output of sobol_design().
sobol_design()
Integer, number of repeated evaluations to average out the model noise. Defaults to one replicate (deterministic behaviour).
Character string, either "saltelli" or "jansen". Defaults to "jansen".
"saltelli"
"jansen"
When TRUE, store all simulated values.
TRUE
Further arguments passed to model.
model
Two families of estimators are available:
"saltelli": Saltelli-type estimator with internal centering of the model outputs before variance and index computation.
"jansen": Jansen-type estimator based on variances of output differences, which is numerically stable in many settings.
design <- sobol_design(n = 128, d = 3, quasi = TRUE) model <- function(x) ishigami_model(x) result <- sobol_indices(model, design, replicates = 4) result$data
Run the code above in your browser using DataLab