coef.rmsb: Extract Bayesian Summary of Coefficients

Description Usage Arguments Value Author(s) Examples

View source: R/stanMisc.r

Description

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

Usage

1
2
## 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

1
2
3
4
5
## Not run: 
  f <- blrm(...)
  coef(f, stat='mode')

## End(Not run)

rmsb documentation built on Feb. 28, 2021, 1:06 a.m.