bas.lm(formula, data, n.models=NULL, prior="ZS-null", alpha=NULL,
modelprior=beta.binomial(1,1),
initprobs="Uniform", method="BAS", update=NULL,
bestmodel = NULL, bestmarg = NULL, prob.local = 0.0, prob.rw=0.5,
MCMC.iterations = NULL, lambda = NULL, delta = 0.025,thin=1)uniform
Bernoulli or beta.binomialbas returns an object of class BMAAn object of class BAS is a list containing at least the following components:
predict.bas)summary.bas, 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 S3 functions fitted.bas and predict.bas.
BA 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. Hoeting, J. A., Madigan, D., Raftery, A. E. and Volinsky, C. T. (1999)
Bayesian model averaging: a tutorial (with discussion). Statist. Sci.,
14, 382-401.
Zellner, A. (1986) On assessing prior distributions and Bayesian regression analysis with g-prior distributions. In Bayesian Inference and Decision Techniques: Essays in Honor of Bruno de Finetti, pp. 233-243. North-Holland/Elsevier. Zellner, A. and Siow, A. (1980) Posterior odds ratios for selected regression hypotheses. In Bayesian Statistics: Proceedings of the First International Meeting held in Valencia (Spain), pp. 585-603.
summary.bas,
coefficients.bma,
print.bas,
predict.bas,
fitted.bas
plot.bma,
image.bma,
eplogprob,
update.bmademo(BAS.hald)
demo(BAS.USCrime)Run the code above in your browser using DataLab