binsreg-package {binsreg} | R Documentation |
Binsreg Package Document
Description
Binscatter provides a flexible, yet parsimonious way of visualizing and summarizing large data sets
and has been a popular methodology in applied microeconomics and other social sciences. The binsreg package provides tools for
statistical analysis using the binscatter methods developed in
Cattaneo, Crump, Farrell and Feng (2024a) and
Cattaneo, Crump, Farrell and Feng (2024b).
binsreg
implements binscatter least squares regression with robust inference and plots, including
curve estimation, pointwise confidence intervals and uniform confidence band.
binsqreg
implements binscatter quantile regression with robust inference and plots, including
curve estimation, pointwise confidence intervals and uniform confidence band.
binsglm
implements binscatter generalized linear regression with robust inference and plots, including
curve estimation, pointwise confidence intervals and uniform confidence band.
binstest
implements binscatter-based hypothesis testing procedures for parametric specifications
of and shape restrictions on the unknown function of interest.
binspwc
implements hypothesis testing procedures for pairwise group comparison of binscatter estimators and plots confidence
bands for the difference in binscatter parameters between each pair of groups.
binsregselect
implements data-driven number of bins selectors for binscatter
implementation using either quantile-spaced or evenly-spaced binning/partitioning.
All the commands allow for covariate adjustment, smoothness restrictions, and clustering,
among other features.
The companion software article, Cattaneo, Crump, Farrell and Feng (2024c), provides further implementation details and empirical illustration. For related Stata, R and Python packages useful for nonparametric data analysis and statistical inference, visit https://nppackages.github.io/.
Author(s)
Matias D. Cattaneo, Princeton University, Princeton, NJ. cattaneo@princeton.edu.
Richard K. Crump, Federal Reserve Bank of New York, New York, NY. richard.crump@ny.frb.org.
Max H. Farrell, UC Santa Barbara, Santa Barbara, CA. mhfarrell@gmail.com.
Yingjie Feng (maintainer), Tsinghua University, Beijing, China. fengyingjiepku@gmail.com.
References
Cattaneo, M. D., R. K. Crump, M. H. Farrell, and Y. Feng. 2024a: On Binscatter. American Economic Review 114(5): 1488-1514.
Cattaneo, M. D., R. K. Crump, M. H. Farrell, and Y. Feng. 2024b: Nonlinear Binscatter Methods. Working Paper.
Cattaneo, M. D., R. K. Crump, M. H. Farrell, and Y. Feng. 2024c: Binscatter Regressions. Working Paper.