Metadata-Version: 2.4
Name: lpdensity
Version: 3.0.0
Summary: Implements local polynomial distribution and density estimation with robust bias-corrected inference.
Home-page: https://github.com/nppackages/lpdensity
Author: Matias D. Cattaneo, Rajita Chandak, Michael Jansson, Xinwei Ma
Author-email: Matias D. Cattaneo <matias.d.cattaneo@gmail.com>, Rajita Chandak <rajita.chandak@gmail.com>, Michael Jansson <michael.jansson.berkeley@gmail.com>, Xinwei Ma <xinweima.pku@gmail.com>
Maintainer: Matias D. Cattaneo
Maintainer-email: matias.d.cattaneo@gmail.com
License: GPL-3.0-only
Project-URL: Homepage, https://nppackages.github.io/
Project-URL: Bug Tracker, https://github.com/nppackages/lpdensity/issues
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Mathematics
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: numpy>=1.23
Requires-Dist: pandas>=2.0.0
Requires-Dist: scipy>=1.10
Requires-Dist: sympy>=1.12
Requires-Dist: plotnine>=0.13.0
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: setuptools; extra == "dev"
Requires-Dist: twine; extra == "dev"
Requires-Dist: wheel; extra == "dev"

# LPDENSITY

The `lpdensity` package provides tools for local polynomial distribution and density estimation, bandwidth selection, robust bias-corrected inference, and graphical procedures.

- `lpdensity`: implements local polynomial distribution and density estimation with pointwise and uniform inference.
- `lpbwdensity`: implements data-driven bandwidth selectors for local polynomial distribution and density estimation.

See Cattaneo, Jansson and Ma (2020, 2022, 2024) for references.

Website: [https://nppackages.github.io/](https://nppackages.github.io/).

Source code: [https://github.com/nppackages/lpdensity](https://github.com/nppackages/lpdensity).

## Authors

Matias D. Cattaneo, maintainer (<matias.d.cattaneo@gmail.com>)

Rajita Chandak (<rajita.chandak@gmail.com>)

Michael Jansson (<michael.jansson.berkeley@gmail.com>)

Xinwei Ma (<xinweima.pku@gmail.com>)

## Installation

To install/update use pip
```
pip install lpdensity
```

# Usage
```
from lpdensity import lpdensity, lpbwdensity
```

- Replication: [lpdensity illustration](https://github.com/nppackages/lpdensity/blob/main/Python/lpdensity_illustration.py).

## Dependencies

- numpy
- pandas
- scipy
- sympy
- plotnine

## References

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

### Software and Implementation

- Cattaneo, Jansson and Ma (2022): [lpdensity: Local Polynomial Density Estimation and Inference](https://nppackages.github.io/references/Cattaneo-Jansson-Ma_2022_JSS.pdf).<br>
_Journal of Statistical Software_ 101(2): 1-25.

### Technical and Methodological

- Cattaneo, Jansson and Ma (2020): [Simple Local Polynomial Density Estimators](https://nppackages.github.io/references/Cattaneo-Jansson-Ma_2020_JASA.pdf).<br>
_Journal of the American Statistical Association_ 115(531): 1449-1455.<br>
[Supplemental appendix](https://nppackages.github.io/references/Cattaneo-Jansson-Ma_2020_JASA--Supplement.pdf).

- Cattaneo, Jansson and Ma (2024): [Local Regression Distribution Estimators](https://nppackages.github.io/references/Cattaneo-Jansson-Ma_2024_JoE.pdf).<br>
_Journal of Econometrics_ 240(2): 105074.<br>
[Supplemental Appendix](https://nppackages.github.io/references/Cattaneo-Jansson-Ma_2024_JoE--Supplement.pdf).
