bas.lm(formula, data, n.models=NULL, prior="ZS-null", alpha=NULL,
modelprior=uniform(),
initprobs="Uniform", method="BAS", update=NULL,
bestmodel = NULL, bestmarg = NULL, prob.local = 0.0, prob.rw=0.5,
Burnin.iterations = NULL, MCMC.iterations = NULL,
lambda = NULL, delta = 0.025)uniform
Bernoulli or beta.binomialbas returns an object of class BMA
An object of class BMA is a list containing at least the following components:predict.bma)summary.bma, is used to print a summary of
the results. The function plot.bma is used to plot
posterior distributions for the coefficients and
image.bma provides an image of the distribution over models.
Posterior summaries of coefficients can be extracted using
coefficients.bma. Fitted values and predictions can be
obtained using the functions fitted.bma and predict.bma.
BMA objects may be updated to use a different prior (without rerunning
the sampler) using the function update.bma.initprobs,
which may impact the results in high-dimensional problems.
The
deterinistic sampler provides a list of the top models in order of an
approximation of independence using the provided initprobs. This
may be effective after running the other algorithms to identify high
probability models and works well if
the correlations of variables are small to modest. The priors on
coefficients include Zellner's g-prior, the Hyper-g prior (Liang et al
2008, the Zellner-Siow Cauchy prior, Empirical Bayes (local and gobal)
g-priors. AIC and BIC are also included.summary.bma,
coefficients.bma,
print.bma,
predict.bma,
fitted.bma
plot.bma,
image.bma,
eplogprob,
update.bmademo(BAS.hald)
demo(BAS.USCrime)Run the code above in your browser using DataLab