Skip to contents

Simple helper that wraps sensitivity::sobol with model = NULL to create the extended design matrix used to evaluate the model.

Usage

sobol4r_design(
  X1,
  X2,
  order = 2,
  nboot = 0,
  type = c("soboljansen", "sobol", "sobol2007", "sobolEff", "sobolmartinez"),
  ...
)

Arguments

X1

First sample (matrix or data.frame).

X2

Second sample (matrix or data.frame).

order

Maximum interaction order (1 or 2).

nboot

Number of bootstrap replicates for confidence intervals.

type

Type of Monte Carlo Estimation of Sobol' Indices to be used. Supported estimators mirror the sensitivity helpers: sobol, sobol2007, soboljansen, sobolEff, and sobolmartinez. Defaults to "soboljansen", which is the safest general-purpose choice for both deterministic and stochastic simulators.

...

Additional arguments passed to sensitivity::sobol.

Value

An object of class "sobol" whose $X field contains the design matrix. You should evaluate your model on $X and then call sensitivity::tell().