powered by
Compute intervals from the posterior predictive distribution.
# S3 method for brmsfit predictive_interval(object, prob = 0.9, ...)
An R object of class brmsfit.
brmsfit
A number p (0 < p < 1) indicating the desired probability mass to include in the intervals. Defaults to 0.9.
0.9
Further arguments passed to posterior_predict.
posterior_predict
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 ~ log_Base4_c, data = epilepsy, family = poisson()) predictive_interval(fit) # } # NOT RUN { # }
Run the code above in your browser using DataLab