The lpdensity package provides Python, R and Stata implementations of bandwidth selection, point estimation and inference procedures for local polynomial distribution and density methods.

This work was supported by the National Science Foundation through grant SES-1459931, SES-1459967, SES-1947805 and SES-1947662.

Queries and Requests

Please email: lpdensity@googlegroups.com

Python Implementation

To install/update in Python type:

pip install lpdensity

R Implementation

To install/update in R type:


Stata Implementation

To install/update in Stata type:

net install lpdensity, from(https://raw.githubusercontent.com/nppackages/lpdensity/master/stata) replace


For source code and related files, visit lpdensity repository.


Software and Implementation

Technical and Methodological