Usage
## S3 method for class 'spikeSlabGAM':
predict(object, newdata = NULL,
type = c("response", "link", "terms"), terms = NULL,
aggregate = mean, quantiles = NULL,
addIntercept = is.null(terms), ...)
Arguments
object
a spikeSlabGAM
model
newdata
an optional data.frame
on which to
evaluate predictions. Defaults to NULL, in which case
the fitted values for the original data are returned
type
the type of prediction required. The default
is on the scale of response, the alternative
'link'
is on the scale of the linear predictor.
Specifying 'terms'
returns a list giving the
linear predictors of the terms specifi
terms
an optional character vector of term labels
or variable names for which to return
fits/predictions/credible regions. If variable names
instead of term labels are supplied, the function returns
predictions/estimates for all terms associat
aggregate
(function) the summary statistic of the
posterior predictive of the linear predictor. Defaults
to mean
.
quantiles
(numeric) an optional vector of
quantiles for borders of credible regions of the returned
values. Defaults to NULL.
addIntercept
include global intercept term in
prediction/estimate? Defaults to TRUE if
terms=NULL
.
...
arguments passed from or to other methods (not
used)