Package: binsreg
Type: Package
Title: Binscatter Estimation and Inference
Date: 2024-07-23
Version: 1.1
Author: Matias D. Cattaneo, Richard K. Crump, Max H. Farrell, Yingjie Feng
Maintainer: Yingjie Feng <fengyingjiepku@gmail.com>
Description: Provides tools for statistical analysis using the binscatter methods developed by Cattaneo, Crump, Farrell and Feng (2024a) <doi:10.48550/arXiv.1902.09608>, Cattaneo, Crump, Farrell and Feng (2024b) <https://nppackages.github.io/references/Cattaneo-Crump-Farrell-Feng_2024_NonlinearBinscatter.pdf> and Cattaneo, Crump, Farrell and Feng (2024c) <doi:10.48550/arXiv.1902.09615>. Binscatter provides a flexible way of describing the relationship between two variables based on partitioning/binning of the independent variable of interest. binsreg(), binsqreg() and binsglm() implement binscatter least squares regression, quantile regression and generalized linear regression respectively, with particular focus on constructing binned scatter plots. They also implement robust (pointwise and uniform) inference of regression functions and derivatives thereof. binstest() implements hypothesis testing procedures for parametric functional forms of and nonparametric shape restrictions on the regression function. binspwc() implements hypothesis testing procedures for pairwise group comparison of binscatter estimators. binsregselect() implements data-driven procedures for selecting the number of bins for binscatter estimation. All the commands allow for covariate adjustment, smoothness restrictions and clustering.
Depends: R (>= 3.1)
License: GPL-2
Encoding: UTF-8
Imports: ggplot2, sandwich, quantreg, splines, matrixStats
RoxygenNote: 7.3.2
NeedsCompilation: no
Packaged: 2024-07-23 12:48:23 UTC; yjfeng
Repository: CRAN
Date/Publication: 2024-07-23 14:30:01 UTC
Built: R 4.6.0; ; 2026-04-26 06:04:51 UTC; unix
