[Paper Review] BayesVarSel: Bayesian Testing, Variable Selection and model averaging in Linear Models using R
This paper introduces the BayesVarSel R package for objective Bayesian hypothesis testing, variable selection, and model averaging in linear models. It provides exact and heuristic algorithms to compute posterior model probabilities and enables model-averaged estimation and prediction using criteria-based priors, offering an intuitive interface inspired by R's lm function for broad usability in applied research.
This paper introduces the R package BayesVarSel which implements objective Bayesian methodology for hypothesis testing and variable selection in linear models. The package computes posterior probabilities of the competing hypotheses/models and provides a suite of tools, specifically proposed in the literature, to properly summarize the results. Additionally, \ourpack\ is armed with functions to compute several types of model averaging estimations and predictions with weights given by the posterior probabilities. BayesVarSel contains exact algorithms to perform fast computations in problems of small to moderate size and heuristic sampling methods to solve large problems. The software is intended to appeal to a broad spectrum of users, so the interface has been carefully designed to be highly intuititive and is inspired by the well-known lm function. The issue of prior inputs is carefully addressed. In the default usage (fully automatic for the user)BayesVarSel implements the criteria-based priors proposed by Bayarri et al (2012), but the advanced user has the possibility of using several other popular priors in the literature. The package is available through the Comprehensive R Archive Network, CRAN. We illustrate the use of BayesVarSel with several data examples.
Motivation & Objective
- To develop a user-friendly R package for objective Bayesian inference in linear models, addressing variable selection and hypothesis testing.
- To implement exact and heuristic computational methods for efficient posterior probability computation in small to moderate-sized problems.
- To support model averaging with posterior model weights, enabling robust estimation and prediction under model uncertainty.
- To provide an intuitive interface inspired by the standard lm function, making Bayesian methods accessible to applied researchers.
- To address prior selection by incorporating criteria-based objective priors while allowing advanced users to specify alternative priors.
Proposed method
- Uses objective Bayesian methodology with criteria-based priors (e.g., Bayarri et al., 2012) to ensure automatic, non-informative prior specification.
- Employs exact algorithms for fast computation of posterior model probabilities in problems of moderate size.
- Applies heuristic sampling methods (e.g., MCMC) for large-scale problems where exact computation is infeasible.
- Implements model averaging via posterior model probabilities, allowing estimation and prediction that account for model uncertainty.
- Provides functions such as Btest for Bayesian testing, BMAcoeff for model-averaged coefficient estimation, and predictBvs for predictive simulation.
- Uses the multivariate t-distribution for predictive distributions in model averaging, incorporating uncertainty in both model and parameter estimates.
Experimental results
Research questions
- RQ1How can objective Bayesian methods be efficiently implemented for variable selection and hypothesis testing in linear models?
- RQ2What is the performance of exact and heuristic algorithms in computing posterior model probabilities across different problem sizes?
- RQ3How can model averaging improve estimation and prediction accuracy when model uncertainty is present?
- RQ4To what extent do criteria-based priors ensure automatic, objective inference without subjective input?
- RQ5How can the interface of a Bayesian package be designed to be intuitive and accessible to non-expert users?
Key findings
- In the rat weight gain example, posterior probabilities of 0.554 for H0 and 0.446 for H1 indicate no strong evidence that the high-protein diet affects average weight gain.
- In the savings dataset, the posterior probability of H1 (full model) was 0.954, indicating strong evidence that all predictors (dpi, ddpi, pop15, pop75) explain the response sr.
- When comparing multiple models in the savings dataset, H1 had a posterior probability of 0.925, while H2 (excluding pop15) had 0.031, suggesting pop15 contributes meaningfully to the model.
- For the SDM dataset, the inclusion probability of P60 was 0.77, and the probability that its effect exceeds 1 was estimated at 0.7511 using model averaging.
- Predictive simulations using predictBvs produced unimodal predictive distributions, with a histogram of predictions for the mean covariate values showing a clear central tendency.
- The package successfully handles complex model comparison tasks with multiple hypotheses and provides reliable, interpretable summaries even in high-dimensional settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.