Before revision:  This article discusses the R and Stata package lpdensity implementing a novel local polynomial density estimator proposed  in Cattaneo, Jansson  and Ma ( 2019 ), which is boundary adaptive , fully data-driven and automatic, and requires only the choice of one tuning parameter.
After revision:  This article discusses the R and Stata package lpdensity implementing a novel local polynomial density estimator proposed in Cattaneo, Jansson and Ma ( 2020a,b ), which is boundary adaptive , fully data-driven and automatic, and requires only the choice of one tuning parameter.