Skip to main content

Implements binscatter methods, including partition selection, point estimation, pointwise and uniform inference methods, and graphical procedures.

Project description

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

Project details


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.1.0.tar.gz (90.3 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.1.0-py3-none-any.whl (92.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: binsreg-3.1.0.tar.gz
  • Upload date:
  • Size: 90.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for binsreg-3.1.0.tar.gz
Algorithm Hash digest
SHA256 1231def99d4cfacf20d8c8d9a0e68f91532deaccd7b25696f93b5674f3514cb3
MD5 6ee4e040e6bc71fc9d8328ce1dab7b36
BLAKE2b-256 89965500bf416ddf6efd1c11555a5266b5034ecec0616c5c57b8b855577dca2f

See more details on using hashes here.

Provenance

The following attestation bundles were made for binsreg-3.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: binsreg-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 92.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for binsreg-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4932bb67c5855a7e338940b81b19ece9b1a4d34a933b77aebe216381217b7276
MD5 8ef1aebd96ea87ece84f10bf894133f0
BLAKE2b-256 f3d9df5c9f51ebf436742372498203fd02d7080bc6ec02d809e09357e6e0f5a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for binsreg-3.1.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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page