predictive_interval.brmsfit {brms} | R Documentation |
Predictive Intervals
Description
Compute intervals from the posterior predictive distribution.
Usage
## S3 method for class 'brmsfit'
predictive_interval(object, prob = 0.9, ...)
Arguments
object |
An R object of class |
prob |
A number p (0 < p < 1) indicating the desired probability mass to
include in the intervals. Defaults to |
... |
Further arguments passed to |
Value
A matrix with 2 columns for the lower and upper bounds of the intervals, respectively, and as many rows as observations being predicted.
Examples
## Not run:
fit <- brm(count ~ zBase, data = epilepsy, family = poisson())
predictive_interval(fit)
## End(Not run)
[Package brms version 2.21.0 Index]