Learn R Programming

rmsb (version 1.1-1)

getParamCoef: Get a Bayesian Parameter Vector Summary

Description

Retrieves posterior mean, median, or mode (if available)

Usage

getParamCoef(
  fit,
  posterior.summary = c("mean", "median", "mode"),
  what = c("both", "betas", "taus")
)

Value

vector of regression coefficients

Arguments

fit

a Bayesian model fit from rmsb

posterior.summary

which summary statistic (Bayesian point estimate) to fetch

what

specifies which coefficients to include. Default is all. Specify what="betas" to include only intercepts and betas if the model is a partial proportional odds model (i.e.,, exclude the tau parameters). Specify what="taus" to include only the tau parameters.

Author

Frank Harrell