Learn R Programming

rms (version 6.0-0)

coef.rmsb: coef.rmsb

Description

Extract Bayesian Summary of Coefficients

Usage

# S3 method for 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 regresion coefficients

Details

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

Examples

Run this code
# NOT RUN {
  f <- blrm(...)
  coef(f, stat='mode')
# }

Run the code above in your browser using DataLab