Patch for CompModSA
Here is a contributed patch to
CompModSA version
1.2.
Changes are summarized below:
- Added option CI.S in control, to get bootstrap confidence intervals for the first-order Sobol indices.
- Fixed function get.S.index to produce first-order Sobol indices, as expected.
- Fixed function mlegp2 to avoid a crash with recent versions of the mlegp package.
- Documentation for the sensitivity function fixed for missing itemizes.
- Removed code duplication in print.sensitivity.
Patch is available
here and the fully patched tarball is
there.
Installation instructions (Unix)
You can install the patched CompModSA together with its dependencies using the following shell script (cut and paste in a terminal window):
wget http://ljk.imag.fr/membres/Alexandre.Janon/compmodsa_1.3.diff \
http://www.stat.unm.edu/~storlie/CompModSA/CompModSA_1.2.tar.gz
tar zxf CompModSA_1.2.tar.gz
cd CompModSA
patch -p1 < ../compmodsa_1.3.diff
cat > installdep << EOF
install.packages(c("quadprog",
"tgp",
"gam",
"locfit",
"rpart",
"mda",
"corpcor",
"randomForest",
"gbm",
"MASS",
"mlegp",
"polspline",
"fields",
"methods"),
repos="http://cran.r-project.org")
EOF
R --interactive --no-save < installdep
R CMD INSTALL .
(this script requires a working
R installation together with a C and Fortran compiler).
Installation instructions (Windows)
On Windows, you can cut and paste the following instructions into a R console:
install.packages(c("quadprog",
"tgp",
"gam",
"locfit",
"rpart",
"mda",
"corpcor",
"randomForest",
"gbm",
"MASS",
"mlegp",
"polspline",
"fields",
"methods"),
repos="http://cran.r-project.org");
install.packages("CompModSA",
contriburl="http://ljk.imag.fr/membres/Alexandre.Janon/R/");
This will fetch and install the
CompModSA binary package for Windows and its dependencies.