You can retrieve approximate CIs by computing quantiles of the coefficients simulated by arm::sim()
:
library(arm)
t(apply(sims@coef, 2, quantile, c(0.025, 0.975)))
2.5% 97.5%
(Intercept) 33.394308 42.024628
cyl -3.485516 -2.169014
(@coef
retrieves the coefficients; apply(., 2, quantile, c(0.025, 0.975))
computes the quantiles for each column; t()
transposes the result)
However, this is very inefficient and a bit backwards as the simulations are derived by drawing multivariate normal simulations based on the sampling covariance matrix of the coefficients (as such, these limits also won't include the finite-size correction that uses the t distribution instead of the Normal). You can get the confidence intervals much more easily:
> confint(mod)
2.5 % 97.5 %
(Intercept) 33.649223 42.119930
cyl -3.534237 -2.217343
>