brms
tidiers will soon be deprecated in broom
and there is no ongoing
development of these functions at this time. brms
tidiers are being
developed in the broom.mixed
package, which is not yet on CRAN.
# S3 method for brmsfit tidy(x, parameters = NA, par_type = c("all", "non-varying", "varying", "hierarchical"), robust = FALSE, intervals = TRUE, prob = 0.9, ...)
x | Fitted model object from the brms package. See
|
---|---|
parameters | Names of parameters for which a summary should be
returned, as given by a character vector or regular expressions.
If |
par_type | One of |
robust | Whether to use median and median absolute deviation rather than mean and standard deviation. |
intervals | If |
prob | Defines the range of the posterior uncertainty intervals,
such that |
... | Extra arguments, not used |
All tidying methods return a data.frame
without rownames.
The structure depends on the method chosen.
When parameters = NA
, the par_type
argument is used
to determine which parameters to summarize.
Generally, tidy.brmsfit
returns
one row for each coefficient, with at least three columns:
The name of the model parameter.
A point estimate of the coefficient (mean or median).
A standard error for the point estimate (sd or mad).
The name of the grouping factor.
The name of the level of the grouping factor.
These methods tidy the estimates from
brms::brmsfit()
(fitted model objects from the brms package) into a summary.
brms::brms()
, brms::brmsfit()