Skip to content

binsreg

2.2Package record

Binscatter Estimation and Inference

0packages depend
12.3Kdownloads / year
5.9%test coverage
13/13flavors OK

Overview

About

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.

Install

Health

CRAN checks
13OK
Slowest check: 3.9 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • NOTE12 OK, 1 NOTE2026-06-08
  • OK13 OK2026-05-20
Show 1 earlier changeHide 1 earlier change
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 2.2
READMENoVignettesNoNEWSNoCitation fileNoWebsiteYes
Help pages
19 (12 internal)includes a package overview page
Examples that run
100%6 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
37%

Downloads

12.3K
CRAN downloads in the past year
Rank #3,819 · ~34/day · ~1K/mo
Daily download trend is not available in this view yet.
1K30 days
2.5K90 days
12.3K1 year
Compare downloads with other packages →
Also on255 r2u27 autocran1.7K conda_forge

Repository

54Stars
20Forks
0Open issues
0Open PRs
1Releases
108Commits
2Commit identities
108 commits · Last activity 2026-08-21 · -1.8% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
56%
Median days to close, 50 most recently updated closed issues
0
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2026-07-14 · 542026-10-18 · 54
PracticesBeta

7 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/nppackages/binsreg on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux

Governance and community (3)
Issue templatesPR templateSecurity policy
Automation and maintenance (1)
Dependabot
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing binsreg adds 23 packages (11 with compiled code, 17 MB of source tarballs). Heaviest: ggplot2 6.0 MB, isoband 1.5 MB, sandwich 1.4 MB.

Depends (1)
R >= 3.1
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (4)
Author, Maintainer since 2.0 (2026)

Previously maintained by Yingjie Feng (0.2.0 to 1.1).

Releases (9)

Pick two releases to compare their code metrics.

  • 2.2Latest
    record
    2026-05-22 · current release · diff ↗
  • 2.1
    record
    2026-05-22 · diff ↗
  • 2.0
    record
    2026-05-15 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.1
    record
    2024-07-23 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0
    record
    2023-07-11 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.9
    record
    2023-01-06 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.7
    record
    2021-10-11 · diff ↗
  • 0.6
    record
    2021-08-07 · diff ↗ ·
    removed 1 export
    binsregtest
    added 4 exports
    binsglm, binspwc, binsqreg, binstest
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
Show 2 earlier eventsHide 2 earlier events
  • 0.2.0
    record
    2019-03-19
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2019-03-19
Total releases
9 / 7 yrs
License
GPL-3 OSI
Minimum R
≥ 3.1
Download size
106 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("binsreg")
Cattaneo, M. D., Crump, R. K., Farrell, M. H., & Feng, Y. (2026). binsreg: Binscatter Estimation and Inference (Version 2.2) [Computer software]. https://doi.org/10.32614/CRAN.package.binsreg

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for binsreg version 2.2 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy