Get summaries of the posterior (predictive) distribution of the linear predictor of a model term
evalTerm(
label,
model,
newdata = NULL,
aggregate = mean,
quantiles = c(0.1, 0.9),
returnData = TRUE
)(character) the label of one of the terms in model.
a spikeSlabGAM object
data.frame on which to evaluate label. Defaults
to NULL, in which case the term is evaluated on the original data.
(function) a summary statistic that is applied over the
mcmc-samples of the linear predictor. Defaults to mean.
(numeric) a vector of quantiles for borders of credible regions of the linear predictor. Defaults to 10 and 90 percent quantiles, i.e. a (point-wise) 80 percent credible region.
should the relevant original variables be included in the
returned data.frame? Defaults to TRUE.
A data.frame that contains the relevant variables from newdata
(if returnData is TRUE), the aggregate-summary and the
requested quantiles.