lpdensity: Local Polynomial Density Estimation and Inference

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.

Version: 3.0
Depends: R (≥ 3.1)
Imports: ggplot2, MASS
Suggests: testthat (≥ 3.0.0)
Published: 2026-05-21
DOI: 10.32614/CRAN.package.lpdensity
Author: Matias D. Cattaneo [aut, cre], Michael Jansson [aut], Xinwei Ma [aut]
Maintainer: Matias D. Cattaneo <matias.d.cattaneo at gmail.com>
BugReports: https://github.com/nppackages/lpdensity/issues
License: GPL-3
URL: https://nppackages.github.io/, https://github.com/nppackages/lpdensity
NeedsCompilation: no
Citation: lpdensity citation info
CRAN checks: lpdensity results

Documentation:

Reference manual: lpdensity.html , lpdensity.pdf

Downloads:

Package source: lpdensity_3.0.tar.gz
Windows binaries: r-devel: lpdensity_2.5.zip, r-release: lpdensity_2.5.zip, r-oldrel: lpdensity_2.5.zip
macOS binaries: r-release (arm64): lpdensity_2.5.tgz, r-oldrel (arm64): lpdensity_2.5.tgz, r-release (x86_64): lpdensity_2.5.tgz, r-oldrel (x86_64): lpdensity_2.5.tgz
Old sources: lpdensity archive

Reverse dependencies:

Reverse imports: mrddGlobal, rddensity

Linking:

Please use the canonical form https://CRAN.R-project.org/package=lpdensity to link to this page.