mcoef | R Documentation |
Extracts coefficients from an MCMCpack regression model
mcoef(model)
model |
regression model created with MCMCpack |
This function extracts the coefficients from an MCCMpack regression model. Behind the scenes, it calls ctable without intercept and without uncertainty (probs=0).
coefficients from the regression model
Didier Ruedin
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.