coef.rmsb: Extract Bayesian Summary of Coefficients

View source: R/stanMisc.r

coef.rmsbR Documentation

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 documentation built on April 12, 2022, 5:06 p.m.