Skip to content

lpdensity

Local Polynomial Density Estimation and Inference

v2.5 · Oct 5, 2024 · GPL-2

Description

Without imposing stringent distributional assumptions or shape restrictions, nonparametric estimation has been popular in economics and other social sciences for counterfactual analysis, program evaluation, and policy recommendations. This package implements a novel density (and derivatives) estimator based on local polynomial regressions, documented in Cattaneo, Jansson and Ma (2022) <doi:10.18637/jss.v101.i02>: lpdensity() to construct local polynomial based density (and derivatives) estimator, and lpbwdensity() to perform data-driven bandwidth selection.

Downloads

1.8K

Last 30 days

2943rd

5.2K

Last 90 days

24.5K

Last year

Trend: +11.7% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (2)

Dependency Network

Dependencies Reverse dependencies ggplot2 MASS mrddGlobal rddensity lpdensity

Version History

new 2.5 Mar 10, 2026
updated 2.5 ← 2.4 diff Oct 5, 2024
updated 2.4 ← 2.3.2 diff Jan 21, 2023
updated 2.3.2 ← 2.3.1 diff Nov 29, 2022
updated 2.3.1 ← 2.3 diff May 2, 2022
updated 2.3 ← 2.2 diff Jan 25, 2022
updated 2.2 ← 2.1 diff Mar 1, 2021
updated 2.1 ← 2.0 diff Sep 1, 2020
updated 2.0 ← 1.0 diff Aug 3, 2020
updated 1.0 ← 0.2.3 diff Jul 12, 2019
updated 0.2.3 ← 0.2.2 diff Apr 14, 2019
updated 0.2.2 ← 0.2.1 diff Jul 8, 2017
updated 0.2.1 ← 0.2 diff Jun 2, 2017
updated 0.2 ← 0.1 diff Apr 13, 2017
new 0.1 Apr 10, 2017