Credible intervals for the fixed effects of a flexyBayes fit
Source:R/methods.R
confint.flexybayes.RdReturns posterior quantile-based credible intervals, not frequentist confidence intervals: the bounds would be empirical quantiles of the fixed-effect posterior draws the fit carries.
Usage
# S3 method for class 'flexybayes'
confint(object, parm = NULL, level = 0.95, ...)Arguments
- object
A flexybayes fit.
- parm
Character vector of parameter names to return, or
NULL(the default) for every fixed effect.- level
Credible level for the interval, as a proportion. The default
0.95returns the 2.5th and 97.5th posterior percentiles.- ...
Ignored, present for compatibility with the generic.
Details
No active engine stores its posterior in the shape this bare fallback
method reads. A fit from an active engine reaches its own method,
confint.flexybayes_inla() for INLA, confint.flexybayes_brms() for
brms: so this method always refuses by name instead of returning an
empty interval matrix, which would read as "no fixed effects" and not
"this fit cannot answer the question".