posterior_interval.brmsfit | R Documentation |
Compute posterior uncertainty intervals for brmsfit
objects.
## S3 method for class 'brmsfit'
posterior_interval(object, pars = NA, variable = NULL, prob = 0.95, ...)
object |
An object of class |
pars |
Deprecated alias of |
variable |
A character vector providing the variables to extract. By default, all variables are extracted. |
prob |
A value between 0 and 1 indicating the desired probability to be covered by the uncertainty intervals. The default is 0.95. |
... |
More arguments passed to |
A matrix
with lower and upper interval bounds
as columns and as many rows as selected variables.
## Not run:
fit <- brm(count ~ zAge + zBase * Trt,
data = epilepsy, family = negbinomial())
posterior_interval(fit)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.