posterior_summary | R Documentation |
Summarizes posterior draws based on point estimates (mean or median), estimation errors (SD or MAD) and quantiles. This function mainly exists to retain backwards compatibility. It will eventually be replaced by functions of the posterior package (see examples below).
posterior_summary(x, ...)
## Default S3 method:
posterior_summary(x, probs = c(0.025, 0.975), robust = FALSE, ...)
## S3 method for class 'brmsfit'
posterior_summary(
x,
pars = NA,
variable = NULL,
probs = c(0.025, 0.975),
robust = FALSE,
...
)
x |
An R object. |
... |
More arguments passed to or from other methods. |
probs |
The percentiles to be computed by the
|
robust |
If |
pars |
Deprecated alias of |
variable |
A character vector providing the variables to extract. By default, all variables are extracted. |
A matrix where rows indicate variables and columns indicate the summary estimates.
summarize_draws
## Not run:
fit <- brm(time ~ age * sex, data = kidney)
posterior_summary(fit)
# recommended workflow using posterior
library(posterior)
draws <- as_draws_array(fit)
summarise_draws(draws, default_summary_measures())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.