Skip to content

binsreg

Binscatter Estimation and Inference

v1.1 · Jul 23, 2024 · GPL-2

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.

Downloads

1.7K

Last 30 days

3000th

2.4K

Last 90 days

2.4K

Last year

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

CRAN Check Status

2 NOTE
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 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 details (14 non-OK)
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"),
               person(given = c("Richard", "K."),
                      family = "Crump",
                      role = "aut"),
               person(given = c("Max", "H."),
                      family = "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"),
               person(given = c("Richard", "K."),
                      family = "Crump",
                      role = "aut"),
               person(given = c("Max", "H."),
                      family = "Farrell",
                      role = "aut"),
               person(given = "Yingjie",
                      family = "Feng",
                      role = c("aut", "cre"),
                      email = "fengyingjiepku@gmail.com"))
as necessary.
OK r-devel-linux-x86_64-fedora-clang

*


            
OK r-devel-linux-x86_64-fedora-gcc

*


            
OK r-devel-macos-arm64

*


            
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

*


            

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 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"),
               person(given = c("Richard", "K."),
                      family = "Crump",
                      role = "aut"),
               person(given = c("Max", "H."),
                      family = "Farrell",
                      role = "aut"),
   
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"),
               person(given = c("Richard", "K."),
                      family = "Crump",
                      role = "aut"),
               person(given = c("Max", "H."),
                      family = "Farrell",
                      role = "aut"),
   

Dependency Network

Dependencies Reverse dependencies ggplot2 sandwich quantreg matrixStats binsreg

Version History

new 1.1 Mar 9, 2026