IDEAS home Printed from https://ideas.repec.org/a/tsj/stataj/v25y2025i1p3-50.html
   My bibliography  Save this article

Binscatter regressions

Author

Listed:
  • Matias D. Cattaneo

    (Princeton University)

  • Richard K. Crump

    (Federal Reserve Bank of New York)

  • Max H. Farrell

    (University of California Santa Barbara)

  • Yingjie Feng

    (Tsinghua University)

Abstract

In this article, we introduce the package binsreg, which implements the binscatter methods developed by Cattaneo et al. (2024a, arXiv:2407.15276 [stat.EM]; 2024b, American Economic Review 114: 1488–1514). The package com- prises seven commands: binsreg, binslogit, binsprobit, binsqreg, binstest, binspwc, and binsregselect. The first four commands implement binscatter plot- ting, point estimation, and uncertainty quantification (confidence intervals and confidence bands) for least-squares linear binscatter regression (binsreg) and for nonlinear binscatter regression (binslogit for logit regression, binsprobit for probit regression, and binsqreg for quantile regression). The next two commands focus on pointwise and uniform inference: binstest implements hypothesis test- ing procedures for parametric specifications and for nonparametric shape restric- tions of the unknown regression function, while binspwc implements multigroup pairwise statistical comparisons. The last command, binsregselect, implements data-driven number-of-bins selectors. The commands offer binned scatterplots and allow for covariate adjustment, weighting, clustering, and multisample anal- ysis, which is useful when studying treatment-effect heterogeneity in randomized and observational studies, among many other features.

Suggested Citation

  • Matias D. Cattaneo & Richard K. Crump & Max H. Farrell & Yingjie Feng, 2025. "Binscatter regressions," Stata Journal, StataCorp LLC, vol. 25(1), pages 3-50, March.
  • Handle: RePEc:tsj:stataj:v:25:y:2025:i:1:p:3-50
    DOI: 10.1177/1536867X251322960
    Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj25-1/st0765/
    as

    Download full text from publisher

    File URL: http://hdl.handle.net/10.1177/1536867X241233672
    Download Restriction: no

    File URL: https://libkey.io/10.1177/1536867X251322960?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
    ---><---

    Other versions of this item:

    • Matias D. Cattaneo & Richard K. Crump & Max H. Farrell & Yingjie Feng, 2019. "Binscatter Regressions," Papers 1902.09615, arXiv.org, revised Jul 2024.

    References listed on IDEAS

    as
    1. Raj Chetty & John N. Friedman & Nathaniel Hilger & Emmanuel Saez & Diane Whitmore Schanzenbach & Danny Yagan, 2011. "How Does Your Kindergarten Classroom Affect Your Earnings? Evidence from Project Star," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 126(4), pages 1593-1660.
    2. Sebastian Calonico & Matias D. Cattaneo & Rocio Titiunik, 2014. "Robust Nonparametric Confidence Intervals for Regression‐Discontinuity Designs," Econometrica, Econometric Society, vol. 82, pages 2295-2326, November.
    3. Matias D. Cattaneo & Max H. Farrell & Yingjie Feng, 2018. "Large Sample Properties of Partitioning-Based Series Estimators," Papers 1804.04916, arXiv.org, revised Jun 2019.
    4. Sebastian Calonico & Matias D. Cattaneo & Max H. Farrell, 2018. "On the Effect of Bias Estimation on Coverage Accuracy in Nonparametric Inference," Journal of the American Statistical Association, Taylor & Francis Journals, vol. 113(522), pages 767-779, April.
    5. Raj Chetty & Adam Looney & Kory Kroft, 2009. "Salience and Taxation: Theory and Evidence," American Economic Review, American Economic Association, vol. 99(4), pages 1145-1177, September.
    6. Raj Chetty & John N. Friedman & Tore Olsen & Luigi Pistaferri, 2011. "Adjustment Costs, Firm Responses, and Micro vs. Macro Labor Supply Elasticities: Evidence from Danish Tax Records," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 126(2), pages 749-804.
    7. Michael Stepner, 2014. "Binned Scatterplots: introducing -binscatter- and exploring its applications," 2014 Stata Conference 4, Stata Users Group.
    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. Crump, Richard K. & Eusepi, Stefano & Tambalotti, Andrea & Topa, Giorgio, 2022. "Subjective intertemporal substitution," Journal of Monetary Economics, Elsevier, vol. 126(C), pages 118-133.
    2. Evan Starr & Brent Goldfarb, 2020. "Binned scatterplots: A simple tool to make research easier and better," Strategic Management Journal, Wiley Blackwell, vol. 41(12), pages 2261-2274, December.
    3. Raphael Brade, 2024. "Short-Term Events, Long-Term Friends? Freshman Orientation Peers and Academic Performance," CESifo Working Paper Series 11046, CESifo.

    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. Matias D. Cattaneo & Richard K. Crump & Max H. Farrell & Yingjie Feng, 2024. "On Binscatter," American Economic Review, American Economic Association, vol. 114(5), pages 1488-1514, May.
    2. Jarkko Harju & Tuomas Matikka & Timo Rauhanen, 2016. "The Effects of Size-Based Regulation on Small Firms: Evidence from VAT Threshold," CESifo Working Paper Series 6115, CESifo.
    3. Tommaso Giommoni & Enrico Rubolino, 2024. "The Cost of Gender Identity Norms: Evidence from a Spouse Tax Credit," CESifo Working Paper Series 11311, CESifo.
    4. Andreas R. Kostøl & Andreas S. Myhre, 2021. "Labor Supply Responses to Learning the Tax and Benefit Schedule," American Economic Review, American Economic Association, vol. 111(11), pages 3733-3766, November.
    5. Reyes, Germán, 2024. "Coarse Wage-Setting and Behavioral Firms," IZA Discussion Papers 17039, Institute of Labor Economics (IZA).
    6. Annette Alstadsæter & Wojciech Kopczuk & Kjetil Telle, 2019. "Social networks and tax avoidance: evidence from a well-defined Norwegian tax shelter," International Tax and Public Finance, Springer;International Institute of Public Finance, vol. 26(6), pages 1291-1328, December.
    7. Kim, Jinyoung & Kim, Seonghoon & Koh, Kanghyock, 2022. "Labor market institutions and the incidence of payroll taxation," Journal of Public Economics, Elsevier, vol. 209(C).
    8. Balila Acurio & Alessandro Tomarchio, 2024. "The Effects of Business Credit Support Programs: Evidence from a Regression Discontinuity Design," IHEID Working Papers 20-2024, Economics Section, The Graduate Institute of International Studies.
    9. Albanese, Andrea & Picchio, Matteo & Ghirelli, Corinna, 2020. "Timed to Say Goodbye: Does Unemployment Benefit Eligibility Affect Worker Layoffs?," Labour Economics, Elsevier, vol. 65(C).
    10. R. Lardeux, 2018. "Who Understands The French Income Tax? Bunching Where Tax Liabilities Start," Documents de Travail de l'Insee - INSEE Working Papers g2018-04, Institut National de la Statistique et des Etudes Economiques.
    11. Eric Zwick & James Mahon, 2014. "Do financial frictions amplify fiscal policy? Evidence from business investment stimulus," Working Papers 1415, Oxford University Centre for Business Taxation.
    12. Waldenström, Daniel & Bastani, Spencer, 2020. "The Ability Gradient in Bunching," Working Paper Series 1333, Research Institute of Industrial Economics.
    13. Cairo, Sofie & Mahlstedt, Robert, 2023. "The disparate effects of information provision: A field experiment on the work incentives of social welfare," Journal of Public Economics, Elsevier, vol. 226(C).
    14. Marco Ovidi, 2021. "Parents know better: primary school choice and student achievement in London," Working Papers 919, Queen Mary University of London, School of Economics and Finance.
    15. Waseem, Mazhar, 2018. "Taxes, informality and income shifting: Evidence from a recent Pakistani tax reform," Journal of Public Economics, Elsevier, vol. 157(C), pages 41-77.
    16. Potrafke, Niklas & Roesel, Felix, 2020. "The urban–rural gap in healthcare infrastructure: does government ideology matter?," EconStor Open Access Articles and Book Chapters, ZBW - Leibniz Information Centre for Economics, vol. 54(3), pages 340-351.
    17. Slotwinski, Michaela & Schmidheiny, Kurt, 2014. "Behavioral Responses to Local Tax Rates: Quasi-Experimental Evidence from a Foreigners Tax Scheme in Switzerland," VfS Annual Conference 2014 (Hamburg): Evidence-based Economic Policy 100292, Verein für Socialpolitik / German Economic Association.
    18. Peter Ganong & Simon Jäger, 2018. "A Permutation Test for the Regression Kink Design," Journal of the American Statistical Association, Taylor & Francis Journals, vol. 113(522), pages 494-504, April.
    19. Matias D. Cattaneo & Rocio Titiunik & Ruiqi Rae Yu, 2025. "rd2d: Causal Inference in Boundary Discontinuity Designs," Papers 2505.07989, arXiv.org, revised Jun 2025.
    20. Michaël Sicsic, 2023. "L’élasticité de l’offre de travail et des revenus dans la littérature. Une analyse comparative des méthodes et des résultats sur données microéconomiques," Revue de l'OFCE, Presses de Sciences-Po, vol. 0(4), pages 5-40.

    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:tsj:stataj:v:25:y:2025:i:1:p:3-50. 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 or Lisa Gilmore (email available below). General contact details of provider: http://www.stata-journal.com/ .

    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.