Skip to content

nppackages/lpcde

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

176 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local Polynomial Conditional Density Methods

The lpcde package implements bandwidth selection, point estimation, and inference procedures for local polynomial conditional distribution and density methods.

  • lpcde: local polynomial conditional CDF, PDF, and derivative estimation with pointwise and uniform inference.
  • lpbwcde: rule-of-thumb bandwidth selection for local polynomial conditional density estimation.

R Implementation

To install/update in R type:

install.packages('lpcde')

Python Implementation

To install/update locally from this repository:

pip install lpcde
from lpcde import lpcde, lpbwcde

The Python implementation mirrors the R lpcde and lpbwcde numerical paths and includes cross-language regression tests against R-generated fixtures.

Stata Implementation

To install/update in Stata type:

net install lpcde, from(https://raw.githubusercontent.com/nppackages/lpcde/main/stata) replace
  • Commands: lpcde for estimation and inference, lpbwcde for bandwidth selection.

  • Help: lpcde, lpbwcde.

  • Replication: do-file.

The Stata implementation is standalone Stata/Mata code, with numerical smoke tests intended to keep it aligned with the R and Python baselines.

References

Software and Implementation

Technical and Methodological

Funding

This work was supported in part by the National Science Foundation through grants SES-1947805, SES-1947662, DMS-2210561, and SES-2241575, and by the National Institutes of Health through grant R01 GM072611-16.



About

Local Polynomial Conditional Distribution Methods

Resources

License

Security policy

Stars

Watchers

Forks

Contributors