bicreg(x, y, wt = rep(1, length(y)), strict = FALSE, OR = 20, maxCol = 31,
drop.factor.levels = TRUE, nbest = 10)
bicreg
returns an object of class bicreg
The function 'summary' is used to print a summary of the results. The function 'plot' is used to plot posterior distributions for the coefficients.
An object of class bicreg
is a list containing at least the following components:summary.bicreg
, print.bicreg
, plot.bicreg
library(MASS)
data(UScrime)
x<- UScrime[,-16]
y<- log(UScrime[,16])
x[,-2]<- log(x[,-2])
lma<- bicreg(x, y, strict = FALSE, OR = 20)
summary(lma)
plot(lma)
imageplot.bma(lma)
Run the code above in your browser using DataLab