fct), linear/polynomial terms
(lin), uni- or bivariate splines
(sm, srf), random intercepts
(rnd) or Markov random fields
(mrf) and their interactions, i.e. an
interaction between two smooth terms yields an effect
surface, an interaction between a linear term and a
random intercept yields random slopes, an interaction
between a linear term and a smooth term yields a varying
coefficient term etc.spikeSlabGAM(formula, data, ..., family = "gaussian",
hyperparameters = list(), model = list(), mcmc = list(),
start = list())ssGAMDesign).ssGAMDesign"poisson"
and "binomial" are implemented as well.spikeAndSlab.spikeAndSlab. User-supplied
groupIndicators and H entries will be
overwritten by spikeAndSlab.spikeAndSlab. Use
start=list(seed=) to set the RNG seed
for reproducible results.spikeSlabGAM with methods
summary.spikeSlabGAM,
predict.spikeSlabGAM, and
plot.spikeSlabGAM.x are treated as lin(x) +
sm(x), factors f (and numerical covariates
with very few distinct values, see
ssGAMDesign) are treated as
fct(f). Valid model formulas have to
satisfy the following conditions: y ~ x1 +
x1:x2x2 is missing. u) and penalized terms are not allowed,
i.e. y ~ u(x1)*x2 will produce an error. y ~ lin(x1) + lin(x2) + x1:x2
will produce an error.multicore if available. If not, a socket cluster
set up with snow is used where available. Use
options(cores=foo) to set the (maximal) number of
processes spawned by the parallelization. If
options()$cores is unspecified, snow uses 8.spikeSlabGAM: Bayesian
Variable Selection, Model Choice and Regularization for
Generalized Additive Mixed Models in R. Journal of
Statistical Software, 43(14), 1--24.ssGAMDesign for details on model
specification, spikeAndSlab for more
details on the MCMC sampler and prior specification, and
ssGAM2Bugs for MCMC diagnostics. Check out
the vignette for theoretical background and code
examples.