
sobolowen
implements the Monte Carlo estimation of
the Sobol' indices for both first-order and total indices at the same
time (alltogether
sobolowen(model = NULL, X1, X2, X3, nboot = 0, conf = 0.95, varest = 2, ...)
# S3 method for sobolowen
tell(x, y = NULL, return.var = NULL, varest = 2, ...)
# S3 method for sobolowen
print(x, ...)
# S3 method for sobolowen
plot(x, ylim = c(0, 1), ...)
# S3 method for sobolowen
ggplot(data, mapping = aes(), ylim = c(0, 1), ..., environment
= parent.frame())
sobolowen
returns a list of class "sobolowen"
, containing all
the input arguments detailed before, plus the following components:
the matched call.
a data.frame
containing the design of experiments.
the response used
the estimations of Variances of the Conditional Expectations
(VCE) with respect to each factor and also with respect to the
complementary set of each factor ("all but
the estimations of the Sobol' first-order indices.
the estimations of the Sobol' total sensitivity indices.
Users can ask more ouput variables with the argument
return.var
(for example, bootstrap outputs V.boot
,
S.boot
and T.boot
).
a function, or a model with a predict
method,
defining the model to analyze.
the first random sample.
the second random sample.
the third random sample.
the number of bootstrap replicates.
the confidence level for bootstrap confidence intervals.
choice for the variance estimator for the denominator of the Sobol' indices. varest=1 is for a classical estimator. varest=2 (default) is for the estimator proposed in Janon et al. (2012).
a list of class "sobolowen"
storing the state of the
sensitivity study (parameters, data, estimates).
a list of class "sobolowen"
storing the state of the
sensitivity study (parameters, data, estimates).
a vector of model responses.
a vector of character strings giving further
internal variables names to store in the output object x
.
y-coordinate plotting limits.
Default list of aesthetic mappings to use for plot. If not specified, must be supplied in each layer added to the plot.
[Deprecated] Used prior to tidy evaluation.
any other arguments for model
which are passed
unchanged each time it is called
Taieb Touati and Bernardo Ramos
A. Owen, 2013, Better estimations of small Sobol' sensitivity indices, ACM Transactions on Modeling and Computer Simulations (TOMACS), 23(2), 11.
Janon, A., Klein T., Lagnoux A., Nodet M., Prieur C. (2012), Asymptotic normality and efficiency of two Sobol index estimators. Accepted in ESAIM: Probability and Statistics.
sobol, sobol2002, sobolSalt, sobol2007, soboljansen, sobolmartinez, sobolEff
# Test case : the non-monotonic Sobol g-function
# The method of sobolowen requires 3 samples
# There are 8 factors, all following the uniform distribution
# on [0,1]
library(boot)
n <- 1000
X1 <- data.frame(matrix(runif(8 * n), nrow = n))
X2 <- data.frame(matrix(runif(8 * n), nrow = n))
X3 <- data.frame(matrix(runif(8 * n), nrow = n))
# sensitivity analysis
# \donttest{
x <- sobolowen(model = sobol.fun, X1, X2, X3, nboot = 10) # put nboot=100
print(x)
plot(x)
library(ggplot2)
ggplot(x)
# }
Run the code above in your browser using DataLab