evalTerm {spikeSlabGAM} | R Documentation |
Get summaries of the posterior (predictive) distribution of the linear predictor of a model term
Description
Get summaries of the posterior (predictive) distribution of the linear predictor of a model term
Usage
evalTerm(
label,
model,
newdata = NULL,
aggregate = mean,
quantiles = c(0.1, 0.9),
returnData = TRUE
)
Arguments
label |
(character) the label of one of the terms in |
model |
a |
newdata |
|
aggregate |
(function) a summary statistic that is applied over the
mcmc-samples of the linear predictor. Defaults to |
quantiles |
(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. |
returnData |
should the relevant original variables be included in the
returned |
Value
A data.frame
that contains the relevant variables from newdata
(if returnData
is TRUE), the aggregate
-summary and the
requested quantiles
.
Author(s)
Fabian Scheipl