brms (version 0.5.0)

fixef: Extract Fixed Effects Estimates

Description

A generic function to extract the fixed effects from a fitted model object.

Usage

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

Arguments

x
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
fixef(brm(time | cens ~ age + sex + disease, data=kidney, family="exponential"),
      estimate = c("mean", "sd"))

Run the code above in your browser using DataLab