binsreg


Namebinsreg JSON
Version 2.1.5 PyPI version JSON
download
home_pagehttps://github.com/nppackages/binsreg
SummaryImplements binscatter methods, including partition selection, point estimation, pointwise and uniform inference methods, and graphical procedures.
upload_time2024-05-23 15:47:42
maintainerNone
docs_urlNone
authorRicardo Masini
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # BINSREG

Binscatter provides a flexible, yet parsimonious way of visualizing and summarizing large data sets and has been a popular methodology in applied microeconomics and other social sciences. The `binsreg` package provides tools for statistical analysis using the binscatter methods developed in Cattaneo, Crump, Farrell and Feng (2022). 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 conf idence 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.


## Authors
 
Matias D. Cattaneo (<cattaneo@princeton.edu>)

Richard K. Crump (<richard.crump@ny.frb.org>)

Max H. Farrell (<maxhfarrell@ucsb.edu>)

Yingjie Feng (<fengyingjiepku@gmail.com>)

Ricardo Masini (<rmasini@princeton.edu>)


## Website

https://nppackages.github.io/binsreg/

## Major Upgrades

This package was first released in Winter 2019, and had one major upgrade in Summer 2021.

Summer 2021 new features include: (i) generalized linear models (logit, Probit, etc.) binscatter; (ii) quantile regression binscatter; (iii) new generic specification and shape restriction hypothesis testing function (now including Lp metrics); (iv) multi-group comparison of binscatter estimators; (v) generic point evaluation of covariate-adjusted binscatter; (vi) speed improvements and optimization. A complete list of upgrades can be found [here](https://nppackages.github.io/binsreg/binsreg_upgrades.txt).


## Installation

To install/update use pip
```
pip install binsreg
```

# Usage
```
from binsreg import binsregselect, binsreg, binsqreg, binsglm, binstest, binspwc
```

- Replication: [binsreg illustration](https://github.com/nppackages/binsreg/blob/master/Python/binsreg_illustration.py), [simulated data](https://github.com/nppackages/binsreg/blob/master/Python/binsreg_sim.csv).


## Dependencies

- numpy
- pandas
- scipy
- statsmodel
- plotnine

## References

For overviews and introductions, see [NP Packages website](https://nppackages.github.io/).

### Software and Implementation

- Cattaneo, Crump, Farrell and Feng (2023c): [Binscatter Regressions](https://nppackages.github.io/references/Cattaneo-Crump-Farrell-Feng_2023_Stata.pdf).<br>
Working paper, prepared for Stata Journal.

### Technical and Methodological

- Cattaneo, Crump, Farrell and Feng (2023a): [On Binscatter](https://mdcattaneo.github.io/papers/Cattaneo-Crump-Farrell-Feng_2023_AER.pdf).<br>
Working paper.

- Cattaneo, Crump, Farrell and Feng (2023b): [Nonlinear Binscatter Methods](https://mdcattaneo.github.io/papers/Cattaneo-Crump-Farrell-Feng_2023_NonlinearBinscatter.pdf).<br>
Working paper.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/nppackages/binsreg",
    "name": "binsreg",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Ricardo Masini",
    "author_email": "rmasini@princeton.edu",
    "download_url": "https://files.pythonhosted.org/packages/cf/7e/cd6f1365f74f7331f303745d6b26522ed38296af45fdb0a6fe992a621816/binsreg-2.1.5.tar.gz",
    "platform": null,
    "description": "# BINSREG\n\nBinscatter provides a flexible, yet parsimonious way of visualizing and summarizing large data sets and has been a popular methodology in applied microeconomics and other social sciences. The `binsreg` package provides tools for statistical analysis using the binscatter methods developed in Cattaneo, Crump, Farrell and Feng (2022). 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 conf idence 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.\n\n\n## Authors\n \nMatias D. Cattaneo (<cattaneo@princeton.edu>)\n\nRichard K. Crump (<richard.crump@ny.frb.org>)\n\nMax H. Farrell (<maxhfarrell@ucsb.edu>)\n\nYingjie Feng (<fengyingjiepku@gmail.com>)\n\nRicardo Masini (<rmasini@princeton.edu>)\n\n\n## Website\n\nhttps://nppackages.github.io/binsreg/\n\n## Major Upgrades\n\nThis package was first released in Winter 2019, and had one major upgrade in Summer 2021.\n\nSummer 2021 new features include: (i) generalized linear models (logit, Probit, etc.) binscatter; (ii) quantile regression binscatter; (iii) new generic specification and shape restriction hypothesis testing function (now including Lp metrics); (iv) multi-group comparison of binscatter estimators; (v) generic point evaluation of covariate-adjusted binscatter; (vi) speed improvements and optimization. A complete list of upgrades can be found [here](https://nppackages.github.io/binsreg/binsreg_upgrades.txt).\n\n\n## Installation\n\nTo install/update use pip\n```\npip install binsreg\n```\n\n# Usage\n```\nfrom binsreg import binsregselect, binsreg, binsqreg, binsglm, binstest, binspwc\n```\n\n- Replication: [binsreg illustration](https://github.com/nppackages/binsreg/blob/master/Python/binsreg_illustration.py), [simulated data](https://github.com/nppackages/binsreg/blob/master/Python/binsreg_sim.csv).\n\n\n## Dependencies\n\n- numpy\n- pandas\n- scipy\n- statsmodel\n- plotnine\n\n## References\n\nFor overviews and introductions, see [NP Packages website](https://nppackages.github.io/).\n\n### Software and Implementation\n\n- Cattaneo, Crump, Farrell and Feng (2023c): [Binscatter Regressions](https://nppackages.github.io/references/Cattaneo-Crump-Farrell-Feng_2023_Stata.pdf).<br>\nWorking paper, prepared for Stata Journal.\n\n### Technical and Methodological\n\n- Cattaneo, Crump, Farrell and Feng (2023a): [On Binscatter](https://mdcattaneo.github.io/papers/Cattaneo-Crump-Farrell-Feng_2023_AER.pdf).<br>\nWorking paper.\n\n- Cattaneo, Crump, Farrell and Feng (2023b): [Nonlinear Binscatter Methods](https://mdcattaneo.github.io/papers/Cattaneo-Crump-Farrell-Feng_2023_NonlinearBinscatter.pdf).<br>\nWorking paper.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Implements binscatter methods, including partition selection, point estimation, pointwise and uniform inference methods, and graphical procedures.",
    "version": "2.1.5",
    "project_urls": {
        "Bug Tracker": "https://github.com/nppackages/binsreg/issues",
        "Homepage": "https://github.com/nppackages/binsreg"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "abfe3890926cb47e7f44bd44560930c33157871f91a299f357ed5e9f79442eb6",
                "md5": "b1c5fe3c8db371296c1dab6672a5bfa8",
                "sha256": "51c2ab9d841eb2808dc0d84b1265f871c6569ac6f4be970ddf5171b8d61fbb02"
            },
            "downloads": -1,
            "filename": "binsreg-2.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b1c5fe3c8db371296c1dab6672a5bfa8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 86058,
            "upload_time": "2024-05-23T15:47:41",
            "upload_time_iso_8601": "2024-05-23T15:47:41.015254Z",
            "url": "https://files.pythonhosted.org/packages/ab/fe/3890926cb47e7f44bd44560930c33157871f91a299f357ed5e9f79442eb6/binsreg-2.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cf7ecd6f1365f74f7331f303745d6b26522ed38296af45fdb0a6fe992a621816",
                "md5": "abd83fcbb54d9ac41589c1f856bf65e9",
                "sha256": "05a10253394dc12eff157118ab0afff2c22915ff79d4a0f2148843ccee05f97d"
            },
            "downloads": -1,
            "filename": "binsreg-2.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "abd83fcbb54d9ac41589c1f856bf65e9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 86426,
            "upload_time": "2024-05-23T15:47:42",
            "upload_time_iso_8601": "2024-05-23T15:47:42.881132Z",
            "url": "https://files.pythonhosted.org/packages/cf/7e/cd6f1365f74f7331f303745d6b26522ed38296af45fdb0a6fe992a621816/binsreg-2.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-23 15:47:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "nppackages",
    "github_project": "binsreg",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "binsreg"
}
        
Elapsed time: 0.58327s