IDEAS home Printed from https://ideas.repec.org/a/jss/jstsof/v076i07.html
   My bibliography  Save this article

bayesQR: A Bayesian Approach to Quantile Regression

Author

Listed:
  • Benoit, Dries F.
  • Van den Poel, Dirk

Abstract

After its introduction by Koenker and Basset (1978), quantile regression has become an important and popular tool to investigate the conditional response distribution in regression. The R package bayesQR contains a number of routines to estimate quantile regression parameters using a Bayesian approach based on the asymmetric Laplace distribution. The package contains functions for the typical quantile regression with continuous dependent variable, but also supports quantile regression for binary dependent variables. For both types of dependent variables, an approach to variable selection using the adaptive lasso approach is provided. For the binary quantile regression model, the package also contains a routine that calculates the fitted probabilities for each vector of predictors. In addition, functions for summarizing the results, creating traceplots, posterior histograms and drawing quantile plots are included. This paper starts with a brief overview of the theoretical background of the models used in the bayesQR package. The main part of this paper discusses the computational problems that arise in the implementation of the procedure and illustrates the usefulness of the package through selected examples.

Suggested Citation

  • Benoit, Dries F. & Van den Poel, Dirk, 2017. "bayesQR: A Bayesian Approach to Quantile Regression," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 76(i07).
  • Handle: RePEc:jss:jstsof:v:076:i07
    DOI: http://hdl.handle.net/10.18637/jss.v076.i07
    as

    Download full text from publisher

    File URL: https://www.jstatsoft.org/index.php/jss/article/view/v076i07/v76i07.pdf
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v076i07/bayesQR_2.3.tar.gz
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v076i07/v76i07.R
    Download Restriction: no

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v076.i07?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. V L Miguéis & D F Benoit & D Van den Poel, 2013. "Enhanced decision support in credit scoring using Bayesian binary quantile regression," Journal of the Operational Research Society, Palgrave Macmillan;The OR Society, vol. 64(9), pages 1374-1383, September.
    2. Chernozhukov, Victor & Hong, Han, 2003. "An MCMC approach to classical estimation," Journal of Econometrics, Elsevier, vol. 115(2), pages 293-346, August.
    3. Koenker,Roger, 2005. "Quantile Regression," Cambridge Books, Cambridge University Press, number 9780521845731, September.
    4. Manski, Charles F., 1985. "Semiparametric analysis of discrete response : Asymptotic properties of the maximum score estimator," Journal of Econometrics, Elsevier, vol. 27(3), pages 313-333, March.
    5. Ji, Yonggang & Lin, Nan & Zhang, Baoxue, 2012. "Model selection in binary and tobit quantile regression using the Gibbs sampler," Computational Statistics & Data Analysis, Elsevier, vol. 56(4), pages 827-839.
    6. Wang, Hansheng & Li, Guodong & Jiang, Guohua, 2007. "Robust Regression Shrinkage and Consistent Variable Selection Through the LAD-Lasso," Journal of Business & Economic Statistics, American Statistical Association, vol. 25, pages 347-355, July.
    7. Dries F. Benoit & Dirk Van den Poel, 2012. "Binary quantile regression: a Bayesian approach based on the asymmetric Laplace distribution," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 27(7), pages 1174-1188, November.
    8. Martin, Andrew D. & Quinn, Kevin M. & Park, Jong Hee, 2011. "MCMCpack: Markov Chain Monte Carlo in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 42(i09).
    9. Sriram, Karthik, 2015. "A sandwich likelihood correction for Bayesian quantile regression based on the misspecified asymmetric Laplace density," Statistics & Probability Letters, Elsevier, vol. 107(C), pages 18-26.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Li, Dan & Clements, Adam & Drovandi, Christopher, 2023. "A Bayesian approach for more reliable tail risk forecasts," Journal of Financial Stability, Elsevier, vol. 64(C).
    2. Dejan Živkov & Boris Kuzman & Jonel Subić, 2020. "What Bayesian quantiles can tell about volatility transmission between the major agricultural futures?," Agricultural Economics, Czech Academy of Agricultural Sciences, vol. 66(5), pages 215-225.
    3. Henry R. Scharf & Xinyi Lu & Perry J. Williams & Mevin B. Hooten, 2022. "Constructing Flexible, Identifiable and Interpretable Statistical Models for Binary Data," International Statistical Review, International Statistical Institute, vol. 90(2), pages 328-345, August.
    4. Mani Suleiman & Haydar Demirhan & Leanne Boyd & Federico Girosi & Vural Aksakalli, 2022. "Bayesian prediction of emergency department wait time," Health Care Management Science, Springer, vol. 25(2), pages 275-290, June.
    5. Iddrisu, Abdul-Aziz & Alagidede, Imhotep Paul, 2020. "Monetary policy and food inflation in South Africa: A quantile regression analysis," Food Policy, Elsevier, vol. 91(C).
    6. Xiaocang Xu & Linhong Chen, 2019. "Projection of Long-Term Care Costs in China, 2020–2050: Based on the Bayesian Quantile Regression Method," Sustainability, MDPI, vol. 11(13), pages 1-13, June.
    7. Asharani Samal & Phanindra Goyari, 2022. "Does Monetary Policy Stabilise Food Inflation in India? Evidence From Quantile Regression Analysis," Australian Economic Review, The University of Melbourne, Melbourne Institute of Applied Economic and Social Research, vol. 55(3), pages 361-372, September.
    8. Yang Yang & Thian Yew Gan & Xuezhi Tan, 2021. "Recent changing characteristics of dry and wet spells in Canada," Climatic Change, Springer, vol. 165(3), pages 1-21, April.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Ji, Yonggang & Lin, Nan & Zhang, Baoxue, 2012. "Model selection in binary and tobit quantile regression using the Gibbs sampler," Computational Statistics & Data Analysis, Elsevier, vol. 56(4), pages 827-839.
    2. Dries Benoit & Rahim Alhamzawi & Keming Yu, 2013. "Bayesian lasso binary quantile regression," Computational Statistics, Springer, vol. 28(6), pages 2861-2873, December.
    3. Bernardi, Mauro & Bottone, Marco & Petrella, Lea, 2018. "Bayesian quantile regression using the skew exponential power distribution," Computational Statistics & Data Analysis, Elsevier, vol. 126(C), pages 92-111.
    4. Oh, Man-Suk & Park, Eun Sug & So, Beong-Soo, 2016. "Bayesian variable selection in binary quantile regression," Statistics & Probability Letters, Elsevier, vol. 118(C), pages 177-181.
    5. Yuzhi Cai, 2018. "A novel statistical approach to marketing campaigns," Working Papers 2018-21, Swansea University, School of Management.
    6. Patrick Bajari & Jeremy Fox & Stephen Ryan, 2008. "Evaluating wireless carrier consolidation using semiparametric demand estimation," Quantitative Marketing and Economics (QME), Springer, vol. 6(4), pages 299-338, December.
    7. Ichimura, Hidehiko & Todd, Petra E., 2007. "Implementing Nonparametric and Semiparametric Estimators," Handbook of Econometrics, in: J.J. Heckman & E.E. Leamer (ed.), Handbook of Econometrics, edition 1, volume 6, chapter 74, Elsevier.
    8. Chen, Le-Yu & Lee, Sokbae, 2018. "Best subset binary prediction," Journal of Econometrics, Elsevier, vol. 206(1), pages 39-56.
    9. Parente, Paulo M.D.C. & Smith, Richard J., 2011. "Gel Methods For Nonsmooth Moment Indicators," Econometric Theory, Cambridge University Press, vol. 27(1), pages 74-113, February.
    10. Jamal Bouoiyour & Refk Selmi, 2017. "The Bitcoin price formation: Beyond the fundamental sources," Working Papers hal-01548710, HAL.
    11. Henry R. Scharf & Xinyi Lu & Perry J. Williams & Mevin B. Hooten, 2022. "Constructing Flexible, Identifiable and Interpretable Statistical Models for Binary Data," International Statistical Review, International Statistical Institute, vol. 90(2), pages 328-345, August.
    12. Jiang, Rong & Qian, Weimin & Zhou, Zhangong, 2012. "Variable selection and coefficient estimation via composite quantile regression with randomly censored data," Statistics & Probability Letters, Elsevier, vol. 82(2), pages 308-317.
    13. Yukiko Omata & Hajime Katayama & Toshi. H. Arimura, 2017. "Same concerns, same responses? A Bayesian quantile regression analysis of the determinants for supporting nuclear power generation in Japan," Environmental Economics and Policy Studies, Springer;Society for Environmental Economics and Policy Studies - SEEPS, vol. 19(3), pages 581-608, July.
    14. Bruins, Marianne & Duffy, James A. & Keane, Michael P. & Smith, Anthony A., 2018. "Generalized indirect inference for discrete choice models," Journal of Econometrics, Elsevier, vol. 205(1), pages 177-203.
    15. Bouoiyour, Jamal & Selmi, Refk & Miftah, Amal, 2015. "“Every cloud has a silver lining”; to what extent does the Arab Spring accelerate the integration among Arab monarchies?," MPRA Paper 70942, University Library of Munich, Germany.
    16. Chernozhukov, Victor & Hansen, Christian & Jansson, Michael, 2009. "Finite sample inference for quantile regression models," Journal of Econometrics, Elsevier, vol. 152(2), pages 93-103, October.
    17. Rosen, Adam M., 2012. "Set identification via quantile restrictions in short panels," Journal of Econometrics, Elsevier, vol. 166(1), pages 127-137.
    18. Kneib, Thomas & Silbersdorff, Alexander & Säfken, Benjamin, 2023. "Rage Against the Mean – A Review of Distributional Regression Approaches," Econometrics and Statistics, Elsevier, vol. 26(C), pages 99-123.
    19. Xiaochun Liu, 2016. "Markov switching quantile autoregression," Statistica Neerlandica, Netherlands Society for Statistics and Operations Research, vol. 70(4), pages 356-395, November.
    20. Figueiredo, Erik & Lima, Luiz Renato & Loures, Alexandre & Oliveira, Celina, 2014. "Uma Análise para o Efeito-Fronteira no Brasil," Revista Brasileira de Economia - RBE, EPGE Brazilian School of Economics and Finance - FGV EPGE (Brazil), vol. 68(4), October.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:jss:jstsof:v:076:i07. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F. Baum (email available below). General contact details of provider: http://www.jstatsoft.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.