View source: R/posterior_predict.R
predictive_interval.brmsfit | R Documentation |
Compute intervals from the posterior predictive distribution.
## S3 method for class 'brmsfit'
predictive_interval(object, prob = 0.9, ...)
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 |
A matrix with 2 columns for the lower and upper bounds of the intervals, respectively, and as many rows as observations being predicted.
## Not run:
fit <- brm(count ~ zBase, data = epilepsy, family = poisson())
predictive_interval(fit)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.