Learn R Programming

rmsb (version 1.1-1)

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 rmsb
coef(object, stat = c("mean", "median", "mode"), ...)

Value

a vector of intercepts and regression coefficients

Arguments

object

an object created by an rms package Bayesian fitting function

stat

name of measure of posterior distribution central tendency to compute

...

ignored

Author

Frank Harrell

Examples

Run this code
if (FALSE) {
  f <- blrm(...)
  coef(f, stat='mode')
}

Run the code above in your browser using DataLab