IDEAS home Printed from https://ideas.repec.org/a/tsj/stataj/v25y2025i1p3-50.html

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.

    Citations

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


    Cited by:

    1. 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.
    2. Crump, Richard K. & Eusepi, Stefano & Tambalotti, Andrea & Topa, Giorgio, 2022. "Subjective intertemporal substitution," Journal of Monetary Economics, Elsevier, vol. 126(C), pages 118-133.
    3. Nicolás González-Pampillón & Jordi Jofre-Monseny, 2026. "How do cities absorb a large immigration shock? the role of housing," SERIEs: Journal of the Spanish Economic Association, Springer;Spanish Economic Association, vol. 17(1), pages 1-30, March.
    4. Raphael Brade, 2024. "Short-Term Events, Long-Term Friends? Freshman Orientation Peers and Academic Performance," CESifo Working Paper Series 11046, CESifo.
    5. Bernal, David & García, Gustavo A. & Pérez Pérez, Jorge, 2025. "Better or worse job accessibility? Understanding changes in spatial mismatch: Evidence from Medellín, Colombia," Journal of Transport Geography, Elsevier, vol. 128(C).

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;

    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: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.

    We have no bibliographic references for this item. You can help adding them by using 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.