Generic QoI-based Sobol indices for a stochastic model
Source:R/sobol4r_qoi_indices.R
sobol4r_qoi_indices.RdThis function extends the classical Sobol indices to a stochastic simulator by first computing a quantity of interest (QoI) for each input point, such as the mean of repeated runs.
Arguments
- model
Stochastic model function that takes a matrix or data.frame
Xand returns a numeric vector of lengthnrow(X).- X1, X2
Two base designs (matrices or data.frames).
- qoi_fun
Function used to summarize the repetitions (default is
mean).- nrep
Number of repetitions of the stochastic model for each design point.
- order
Maximum interaction order (1 or 2).
- nboot
Number of bootstrap replicates for Sobol indices.
- type
Which estimator to use. Any sensitivity Sobol helper is supported:
"sobol","sobol2007","soboljansen","sobolEff", or"sobolmartinez". Defaults to"soboljansen", the most robust general-purpose choice.- ...
Additional arguments passed to
model.