Learn R Programming

brms (version 0.8.0)

fixef.brmsfit: Extract Fixed Effects Estimates

Description

Extract the fixed effects from a brmsfit object.

Usage

## S3 method for class 'brmsfit':
fixef(object, estimate = "mean", ...)

Arguments

object
An object of class brmsfit
estimate
A character vector specifying which coefficients (e.g., "mean", "median", "sd", or "quantile") should be calculated for the fixed effects.
...
Further arguments to be passed to the functions specified in estimate

Value

  • A matrix with one row per fixed effect and one column per calculated estimate.

Examples

Run this code
fit <- brm(time | cens(censored) ~ age + sex + disease, 
           data = kidney, family = "exponential")
fixef(fit, estimate = c("mean", "sd"))

Run the code above in your browser using DataLab