Boundary Adaptive Local Polynomial Conditional Density Estimator

Tools for estimation and inference of conditional densities, derivatives and functions. This is the companion software for Cattaneo, Chandak, Jansson and Ma (2024) .


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')
devtools::install_github('nppackages/lpcde/R/lpcde')

Basic usage:

model1 <- lpcde::lpcde(x_data = x_data, y_data = y_data,
                       y_grid = y_grid, x = 0, bw = 1)

model2 <- lpcde::lpbwcde(y_data = y_data, x_data = x_data,
                         x = 0, y_grid = y_grid)

Standard R methods including coef, confint, plot, print, summary, and vcov are available for fitted lpcde objects. The summary, print, and coef methods are available for lpbwcde bandwidth-selection objects.

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.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("lpcde")

1.0.0 by Matias D. Cattaneo, 5 months ago


https://nppackages.github.io/lpcde/, https://github.com/nppackages/lpcde


Report a bug at https://github.com/nppackages/lpcde/issues


Browse source code at https://github.com/cran/lpcde


Authors: Matias D. Cattaneo [aut, cre] , Rajita Chandak [aut] , Michael Jansson [aut] , Xinwei Ma [aut]


Documentation:   PDF Manual  


GPL-3 license


Imports Rcpp, ggplot2, purrr, MASS, mvtnorm, combinat, Matrix, Rdpack, stats

Suggests testthat, covr

Linking to Rcpp, RcppArmadillo


See at CRAN