Skip to contents

Function takes the the output of functions that return credible intervals from BAS objects, and creates a plot of the posterior mean with segments representing the credible interval. of what the function does. ~~

Usage

# S3 method for class 'confint.bas'
plot(x, horizontal = FALSE, ...)

Arguments

x

the output from confint.coef.bas or confint.pred.bas containing credible intervals and estimates.

horizontal

orientation of the plot

...

optional graphical arguments to pass on to plot

Value

A plot of the credible intervals.

Details

This function takes the HPD intervals or credible intervals created by confint.coef.bas or confint.pred.bas from BAS objects, and creates a plot of the posterior mean with segments representing the credible interval. BAS tries to return HPD intervals, and under model averaging these may not be symmetric. the description above ~~

Author

Merlise A Clyde

Examples


data(Hald)
hald.ZS = bas.lm(Y ~ ., data=Hald, prior="ZS-null", modelprior=uniform())
hald.coef = confint(coef(hald.ZS), parm=2:5)
plot(hald.coef)

#> NULL
plot(hald.coef, horizontal=TRUE)

#> NULL
plot(confint(predict(hald.ZS, se.fit=TRUE), parm="mean"))

#> NULL