Learn R Programming

brms (version 0.9.1)

fixef.brmsfit: Extract Population-Level Estimates

Description

Extract the population-level ('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 population-level effects.
...
Further arguments to be passed to the functions specified in estimate

Value

  • A matrix with one row per population-level 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