IDEAS home Printed from https://ideas.repec.org/p/boc/csug22/05.html
   My bibliography  Save this paper

Stata commands to estimate quantile regression with panel and grouped data

Author

Listed:
  • Martina Pons

    (Unversity of Bern)

  • Blaise Melly

    (Unversity of Bern)

Abstract

In this presentation, we introduce two Stata commands that allow estimating quantile regression with panel and grouped data. The commands implement two-step minimum-distance estimators. We first compute a quantile regression within each unit and then apply GMM to the fitted values from the first stage. The command xtmdqr applies to classical panel data, where we follow the same units over time, while the command mdqr applies to grouped data, where the observations are at the individual level but the treatment varies at the group level. Depending on the variables assumed to be exogenous, this approach provides quantile analogs of the classical least-squares panel-data estimators such as the fixed-effects, random-effects, between, and Hausman–Taylor estimators. For grouped (instrumental) quantile regression, we provide a more precise estimator than the existing estimators. In our companion paper (Melly and Pons, "Minimum distance estimation of quantile panel data models"), we study the theoretical properties of these estimators.

Suggested Citation

  • Martina Pons & Blaise Melly, 2022. "Stata commands to estimate quantile regression with panel and grouped data," Swiss Stata Conference 2022 05, Stata Users Group.
  • Handle: RePEc:boc:csug22:05
    as

    Download full text from publisher

    File URL: http://repec.org/csug2022/Melly-Bern2022-mdqr.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Galvao, Antonio F. & Gu, Jiaying & Volgushev, Stanislav, 2020. "On the unbiased asymptotic normality of quantile regression with fixed effects," Journal of Econometrics, Elsevier, vol. 218(1), pages 178-215.
    2. Galvao, Antonio F. & Wang, Liang, 2015. "Efficient minimum distance estimator for quantile regression fixed effects panel data," Journal of Multivariate Analysis, Elsevier, vol. 133(C), pages 1-26.
    3. Victor Chernozhukov & Christian Hansen, 2005. "An IV Model of Quantile Treatment Effects," Econometrica, Econometric Society, vol. 73(1), pages 245-261, January.
    4. Koenker, Roger, 2004. "Quantile regression for longitudinal data," Journal of Multivariate Analysis, Elsevier, vol. 91(1), pages 74-89, October.
    5. Bargain, Olivier & Etienne, Audrey & Melly, Blaise, 2018. "Public Sector Wage Gaps over the Long-Run: Evidence from Panel Administrative Data," IZA Discussion Papers 11924, Institute of Labor Economics (IZA).
    6. Antonio F. Galvao & Alexandre Poirier, 2019. "Quantile Regression Random Effects," Annals of Economics and Statistics, GENES, issue 134, pages 109-148.
    Full references (including those not matched with items on IDEAS)

    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. Antonio F. Galvao & Thomas Parker & Zhijie Xiao, 2021. "Bootstrap inference for panel data quantile regression," Papers 2111.03626, arXiv.org.
    2. Yiren Wang & Liangjun Su & Yichong Zhang, 2022. "Low-rank Panel Quantile Regression: Estimation and Inference," Papers 2210.11062, arXiv.org.
    3. Li Tao & Lingnan Tai & Manling Qian & Maozai Tian, 2023. "A New Instrumental-Type Estimator for Quantile Regression Models," Mathematics, MDPI, vol. 11(15), pages 1-26, August.
    4. Machado, José A.F. & Santos Silva, J.M.C., 2019. "Quantiles via moments," Journal of Econometrics, Elsevier, vol. 213(1), pages 145-173.
    5. Philip Kostov & Julie Le Gallo, 2018. "What role for human capital in the growth process: new evidence from endogenous latent factor panel quantile regressions," Scottish Journal of Political Economy, Scottish Economic Society, vol. 65(5), pages 501-527, November.
    6. David Powell, 2022. "Quantile regression with nonadditive fixed effects," Empirical Economics, Springer, vol. 63(5), pages 2675-2691, November.
    7. Frantisek Cech & Jozef Barunik, 2017. "Measurement of Common Risk Factors: A Panel Quantile Regression Model for Returns," Working Papers IES 2017/20, Charles University Prague, Faculty of Social Sciences, Institute of Economic Studies, revised Sep 2017.
    8. Firpo, Sergio & Galvao, Antonio F. & Pinto, Cristine & Poirier, Alexandre & Sanroman, Graciela, 2022. "GMM quantile regression," Journal of Econometrics, Elsevier, vol. 230(2), pages 432-452.
    9. Jiaying Gu & Stanislav Volgushev, 2018. "Panel Data Quantile Regression with Grouped Fixed Effects," Papers 1801.05041, arXiv.org, revised Aug 2018.
    10. Panagiotidis, Theodore & Printzis, Panagiotis, 2021. "Investment and uncertainty: Are large firms different from small ones?," Journal of Economic Behavior & Organization, Elsevier, vol. 184(C), pages 302-317.
    11. Boikos, Spyridon & Panagiotidis, Theodore & Voucharas, Georgios, 2022. "Financial development, reforms and growth," Economic Modelling, Elsevier, vol. 108(C).
    12. Xiaorong Yang & Jia Chen & Degui Li & Runze Li, 2023. "Functional-Coefficient Quantile Regression for Panel Data with Latent Group Structure," Papers 2303.13218, arXiv.org.
    13. Blasberg, Alexander & Kiesel, Rüdiger & Taschini, Luca, 2023. "Carbon default swap – disentangling the exposure to carbon risk through CDS," LSE Research Online Documents on Economics 118096, London School of Economics and Political Science, LSE Library.
    14. Denis Chetverikov & Bradley Larsen & Christopher Palmer, 2016. "IV Quantile Regression for Group‐Level Treatments, With an Application to the Distributional Effects of Trade," Econometrica, Econometric Society, vol. 84, pages 809-833, March.
    15. Battagliola, Maria Laura & Sørensen, Helle & Tolver, Anders & Staicu, Ana-Maria, 2022. "A bias-adjusted estimator in quantile regression for clustered data," Econometrics and Statistics, Elsevier, vol. 23(C), pages 165-186.
    16. Damian Clarke & Manuel Llorca Jaña & Daniel Pailañir, 2023. "The use of quantile methods in economic history," Historical Methods: A Journal of Quantitative and Interdisciplinary History, Taylor & Francis Journals, vol. 56(2), pages 115-132, April.
    17. Fenfen Wei & Nanping Feng & Kevin H. Zhang, 2017. "Innovation Capability and Innovation Talents: Evidence from China Based on a Quantile Regression Approach," Sustainability, MDPI, vol. 9(7), pages 1-15, July.
    18. Gilles Dufrenot & Valerie Mignon & Charalambos Tsangarides, 2010. "The trade-growth nexus in the developing countries: a quantile regression approach," Review of World Economics (Weltwirtschaftliches Archiv), Springer;Institut für Weltwirtschaft (Kiel Institute for the World Economy), vol. 146(4), pages 731-761, December.
    19. Zhang, Yingying & Wang, Huixia Judy & Zhu, Zhongyi, 2019. "Quantile-regression-based clustering for panel data," Journal of Econometrics, Elsevier, vol. 213(1), pages 54-67.
    20. Lamarche, Carlos, 2008. "Private school vouchers and student achievement: A fixed effects quantile regression evaluation," Labour Economics, Elsevier, vol. 15(4), pages 575-590, August.

    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:boc:csug22:05. 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: https://edirc.repec.org/data/stataea.html .

    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.