Skip to content

binsreg

Binscatter Estimation and Inference

v2.1 · May 22, 2026 · GPL-3

Description

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.

Downloads

1.1K

Last 30 days

3508th

3K

Last 90 days

13.2K

Last year

Trend: +9.7% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
NOTE 12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 8, 2026
NOTE r-devel-linux-x86_64-debian-gcc

R code for possible problems

Fatal error: cannot create 'R_TempDir'
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 20, 2026
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Yingjie Feng <fengyingjiepku@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = c("Matias", "D."),
                      family = "Cattaneo",
                      role = "aut"),
     
...[truncated]...
y = "Farrell",
                      role = "aut"),
               person(given = "Yingjie",
                      family = "Feng",
                      role = c("aut", "cre"),
                      email = "fengyingjiepku@gmail.com"))
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Yingjie Feng <fengyingjiepku@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = c("Matias", "D."),
                      family = "Cattaneo",
                      role = "aut"),
     
...[truncated]...
y = "Farrell",
                      role = "aut"),
               person(given = "Yingjie",
                      family = "Feng",
                      role = c("aut", "cre"),
                      email = "fengyingjiepku@gmail.com"))
as necessary.

Dependency Network

Dependencies Reverse dependencies ggplot2 sandwich quantreg matrixStats binsreg

Version History

9 tracked
updated 2.1 ← 2.0 diff May 22, 2026
updated 2.0 ← 1.1 diff May 15, 2026
new 1.1 Mar 10, 2026
updated 1.1 ← 1.0 diff Jul 22, 2024
updated 1.0 ← 0.9 diff Jul 10, 2023
updated 0.9 ← 0.7 diff Jan 5, 2023
updated 0.7 ← 0.6 diff Oct 10, 2021
updated 0.6 ← 0.2.0 diff Aug 6, 2021
new 0.2.0 Mar 18, 2019