Learn R Programming

rmsb (version 0.0.2)

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"), ...)

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

Examples

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

Run the code above in your browser using DataLab