mcoef: Extracts Coefficients from an MCMCpack Regression Model

View source: R/mcoef.R

mcoefR Documentation

Extracts Coefficients from an MCMCpack Regression Model

Description

Extracts coefficients from an MCMCpack regression model

Usage

mcoef(model)

Arguments

model

regression model created with MCMCpack

Details

This function extracts the coefficients from an MCCMpack regression model. Behind the scenes, it calls ctable without intercept and without uncertainty (probs=0).

Value

coefficients from the regression model

Author(s)

Didier Ruedin

Examples

# Sample data
dat = data.frame(X = c(-2,-1,0,1,2), Y = c(1,3,3,3,5), Z = c(1,2,3,5,5))
library(MCMCpack)
m = MCMCregress(Y ~ X + Z, data=dat)
mcoef(m)

mpplot documentation built on Sept. 25, 2025, 3 a.m.