Local Polynomial Density Estimation and Inference
Overview
Implements local polynomial distribution and density methods for point estimation, inference and bandwidth selection, documented in Cattaneo, Jansson and Ma (2020) doi:10.1080/01621459.2019.1635480, Cattaneo, Jansson and Ma (2022) doi:10.18637/jss.v101.i02, and Cattaneo, Jansson and Ma (2024) doi:10.1016/j.jeconom.2021.01.006. lpdensity() constructs local polynomial distribution and density estimators with robust bias-corrected inference, and lpbwdensity() implements data-driven bandwidth selection.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-05-24
- ERROR11 OK, 2 ERROR2026-05-22
- OK14 OK2026-03-10
Documentation
- Help pages
- 24 (11 internal)includes a package overview page
- Examples that run
- 100%11 run in a plain check
- Exported functions with examples
- 67%
- Documented parameters
- 94%
- Return-value docs
- 100%
- Help pages citing references
- 13%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 0
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Forks over time
7 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/nppackages/lpdensity on 2026-10-22.
The R CMD check workflow runs on Linux
GitHub Pages site last deployed 2022-05-26
Dependencies
Installing lpdensity adds 17 packages (7 with compiled code, 14 MB of source tarballs). Heaviest: ggplot2 6.0 MB, isoband 1.5 MB, farver 1.2 MB.
Code & Tests
People & History
Previously maintained by Xinwei Ma (0.1 to 2.5).
Pick two releases to compare their code metrics.
- 3.0.1Latest
- 3.02026-05-21 · diff ↗
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 2.52024-10-06 · diff ↗
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 2.42023-01-22 · diff ↗
- 2.3.22022-11-30 · diff ↗
- 2.3.12022-05-03 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 2.32022-01-26 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 2.22021-03-02 · diff ↗
- 2.12020-09-02 · diff ↗
- 2.02020-08-04 · diff ↗
Show 11 earlier eventsHide 11 earlier events
Package metadata
- First published
- 2017-04-11
- Total releases
- 16 / 9 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.1
- Download size
- 33 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("lpdensity")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v101.i02.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.