Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

coef.rmsb

Extract Bayesian Summary of Coefficients


Description

Computes either the posterior mean (default), posterior median, or posterior mode of the parameters in an rms Bayesian regression model

Usage

## S3 method for class 'rmsb'
coef(object, stat = c("mean", "median", "mode"), ...)

Arguments

object

an object created by an rms package Bayesian fitting function

stat

name of measure of posterior distribution central tendency to compute

...

ignored

Value

a vector of intercepts and regression coefficients

Author(s)

Frank Harrell

Examples

## Not run: 
  f <- blrm(...)
  coef(f, stat='mode')

## End(Not run)

rmsb

Bayesian Regression Modeling Strategies

v0.0.2
GPL (>= 3)
Authors
Frank Harrell [aut, cre] (<https://orcid.org/0000-0002-8271-5493>), Ben Goodrich [ctb] (contributed Stan code), Ben Bolker [ctb] (wrote original code that is folded into the pdensityContour function), Doug Bates [ctb] (write original code for highest posterior density interval that is folded into the HPDint function)
Initial release
2021-02-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.