View source: R/brmsfit-methods.R
fixef.brmsfit | R Documentation |
Extract the population-level ('fixed') effects
from a brmsfit
object.
## S3 method for class 'brmsfit'
fixef(
object,
summary = TRUE,
robust = FALSE,
probs = c(0.025, 0.975),
pars = NULL,
...
)
object |
An object of class |
summary |
Should summary statistics be returned
instead of the raw values? Default is |
robust |
If |
probs |
The percentiles to be computed by the |
pars |
Optional names of coefficients to extract. By default, all coefficients are extracted. |
... |
Currently ignored. |
If summary
is TRUE
, a matrix returned
by posterior_summary
for the population-level effects.
If summary
is FALSE
, a matrix with one row per
posterior draw and one column per population-level effect.
## Not run:
fit <- brm(time | cens(censored) ~ age + sex + disease,
data = kidney, family = "exponential")
fixef(fit)
# extract only some coefficients
fixef(fit, pars = c("age", "sex"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.