sensiFdiv
conducts a density-based sensitivity
analysis where the impact of an input variable is defined
in terms of dissimilarity between the original output density function
and the output density function when the input variable is fixed.
The dissimilarity between density functions is measured with Csiszar f-divergences.
Estimation is performed through kernel density estimation and
the function kde
of the package ks
.sensiFdiv(model = NULL, X, fdiv = "TV", nboot = 0, conf = 0.95, ...)
## S3 method for class 'sensiFdiv':
tell(x, y = NULL, \dots)
## S3 method for class 'sensiFdiv':
print(x, \dots)
## S3 method for class 'sensiFdiv':
plot(x, ylim = c(0, 1), ...)
predict
method,
defining the model to analyze.data.frame
representing the input random sample."sensiFdiv"
storing the state of the
sensitivity study (parameters, data, estimates).model
which are passed
unchanged each time it is called.sensiFdiv
returns a list of class "sensiFdiv"
, containing all
the input arguments detailed before, plus the following components:data.frame
containing the design of experiments.kde, sensiHSIC
library(ks)
# Test case : the non-monotonic Sobol g-function
n <- 100
X <- data.frame(matrix(runif(8 * n), nrow = n))
# Density-based sensitivity analysis
x <- sensiFdiv(model = sobol.fun, X = X, fdiv = c("TV","KL"), nboot=30)
print(x)
Run the code above in your browser using DataLab