spikeSlabGAM
provides a formula-based interface for specifying models
and takes care of (most of) the housekeeping. Sampling of
the chains is done in parallel using package
parallel
. A "SOCK" cluster is set up under
Windows to do so (and closed after computations are done,
I try to clean up after myself), see
makeCluster
etc. Use
options(mc.cores=)
to set the (maximal)
number of processes forked by the parallelization. If
options()$mc.cores
is unspecified, it is set to 2.spikeAndSlab(y, X,
family = c("gaussian", "binomial", "poisson"),
hyperparameters = list(), model = list(),
mcmc = list(), start = list())