evalTerm | R Documentation |
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 )
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 |
A data.frame
that contains the relevant variables from newdata
(if returnData
is TRUE), the aggregate
-summary and the
requested quantiles
.
Fabian Scheipl
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.