Skip to main content

BINSREG

The binsreg package provides tools for statistical analysis using the binscatter methods.

  • binsreg: implements binscatter least squares regression with robust inference and plots, including curve estimation, pointwise confidence intervals and uniform confidence band.
  • binsqreg: implements binscatter quantile regression with robust inference and plots, including curve estimation, pointwise confidence intervals and uniform confidence band.
  • binsglm: implements binscatter generalized linear regression with robust inference and plots, including curve estimation, pointwise confidence intervals and uniform confidence band.
  • binstest: implements binscatter-based hypothesis testing procedures for parametric specifications of and shape restrictions on the unknown function of interest.
  • binspwc: implements hypothesis testing procedures for pairwise group comparison of binscatter estimators.
  • binsregselect: implements data-driven number of bins selectors for binscatter implementation using either quantile-spaced or evenly-spaced binning/partitioning.

All the commands allow for covariate adjustment, smoothness restrictions, and clustering, among other features. See Cattaneo, Crump, Farrell and Feng (2024, 2025, 2026) for references.

Website: https://nppackages.github.io/.

Source code: https://github.com/nppackages/binsreg.

Authors

Matias D. Cattaneo (matias.d.cattaneo@gmail.com)

Richard K. Crump (richard.crump@gmail.com)

Max H. Farrell (mhfarrell@gmail.com)

Yingjie Feng (fengyingjiepku@gmail.com)

Ricardo Masini (ricardo.masini@gmail.com)

Installation

To install/update use pip

pip install binsreg

Usage

from binsreg import binsregselect, binsreg, binsqreg, binsglm, binstest, binspwc

Dependencies

  • numpy
  • pandas
  • scipy
  • statsmodels
  • plotnine

References

For overviews and introductions, see NP Packages website.

Software and Implementation

Technical and Methodological

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

binsreg-3.2.0.tar.gz (91.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

binsreg-3.2.0-py3-none-any.whl (92.3 kB view details)

Uploaded Python 3

File details

Details for the file binsreg-3.2.0.tar.gz.

File metadata

  • Download URL: binsreg-3.2.0.tar.gz
  • Upload date:
  • Size: 91.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for binsreg-3.2.0.tar.gz
Algorithm Hash digest
SHA256 d8c1d34a429c8edac153828f3de14e6cb0495c86d856b549b86bcb4f5be67a5f
MD5 3e631566d9b398f0fd6f1fb0640a0dc7
BLAKE2b-256 63d05798430ab274df8981048e3a8aeb012eaef40f41373fcba030a895068293

See more details on using hashes here.

Provenance

The following attestation bundles were made for binsreg-3.2.0.tar.gz:

Publisher: publish-python.yml on nppackages/binsreg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file binsreg-3.2.0-py3-none-any.whl.

File metadata

  • Download URL: binsreg-3.2.0-py3-none-any.whl
  • Upload date:
  • Size: 92.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for binsreg-3.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e63784bde0e3a49c760fa8ecd94116197b81a5952ee2d2c7ad9f0a5fc2b0d1b
MD5 22700932640ec96e2e1341bbabf5f390
BLAKE2b-256 b06edb300a168bf301b0a709d153e09ddfa489e3f53c842eed3ffdf863255784

See more details on using hashes here.

Provenance

The following attestation bundles were made for binsreg-3.2.0-py3-none-any.whl:

Publisher: publish-python.yml on nppackages/binsreg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

3.2.1

2 files

This release

3.2.0 This release

2 files

3.1.0

2 files

3.0.0

2 files

2.1.7

2 files

2.1.5

2 files

2.1.4

2 files

2.1.3

2 files

2.1.0

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page