Package: binsreg 2.1

binsreg: Binscatter Estimation and Inference

Provides tools for statistical analysis using the binscatter methods developed by Cattaneo, Crump, Farrell and Feng (2024) <https://nppackages.github.io/references/Cattaneo-Crump-Farrell-Feng_2024_AER.pdf>, Cattaneo, Crump, Farrell and Feng (2025) <https://nppackages.github.io/references/Cattaneo-Crump-Farrell-Feng_2025_Stata.pdf> and Cattaneo, Crump, Farrell and Feng (2026) <https://nppackages.github.io/references/Cattaneo-Crump-Farrell-Feng_2026_RESTAT.pdf>. 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.

Authors:Matias D. Cattaneo [aut, cre], Richard K. Crump [aut], Max H. Farrell [aut], Yingjie Feng [aut]

binsreg_2.1.tar.gz
binsreg_2.1.zip(r-4.7)binsreg_2.1.zip(r-4.6)binsreg_2.1.zip(r-4.5)
binsreg_2.1.tgz(r-4.6-any)binsreg_2.1.tgz(r-4.5-any)
binsreg_2.1.tar.gz(r-4.7-any)binsreg_2.1.tar.gz(r-4.6-any)
binsreg_2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
binsreg/json (API)

# Install 'binsreg' in R:
install.packages('binsreg', repos = c('https://mdcattaneo.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/nppackages/binsreg/issues

On CRAN:

Conda:

2.77 score 2 stars 146 scripts 935 downloads 6 exports 27 dependencies

Last updated from:994833b4d0. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK165
source / vignettesOK173
linux-release-x86_64OK159
macos-release-arm64OK108
macos-oldrel-arm64OK113
windows-develOK124
windows-releaseOK128
windows-oldrelOK113
wasm-releaseOK98

Exports:binsglmbinspwcbinsqregbinsregbinsregselectbinstest

Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglatticelifecycleMASSMatrixMatrixModelsmatrixStatsquantregR6RColorBrewerrlangS7sandwichscalesSparseMsurvivalvctrsviridisLitewithrzoo