Learn R Programming

lpdensity (version 2.5)

Local Polynomial Density Estimation and Inference

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) : lpdensity() to construct local polynomial based density (and derivatives) estimator, and lpbwdensity() to perform data-driven bandwidth selection.

Copy Link

Version

Install

install.packages('lpdensity')

Monthly Downloads

1,760

Version

2.5

License

GPL-2

Maintainer

Xinwei Ma

Last Published

October 6th, 2024

Functions in lpdensity (2.5)

confint.lpdensity

Confint Method for Local Polynomial Density Estimation and Inference
lpdensity

Local Polynomial Density Estimation and Inference
print.lpbwdensity

Print Method for Local Polynomial Density Bandwidth Selection
lpdensity-package

lpdensity: Local Polynomial Density Estimation and Inference
lpdensity.plot

Plot Method for Local Polynomial Density Estimation and Inference
lpdensityUnique

Internal function.
summary.lpdensity

Summary Method for Local Polynomial Density Estimation and Inference
print.lpdensity

Print Method for Local Polynomial Density Estimation and Inference
lpbwdensity

Data-driven Bandwidth Selection for Local Polynomial Density Estimators
summary.lpbwdensity

Summary Method for Local Polynomial Density Bandwidth Selection
normal_dgps

Internal function.
vcov.lpdensity

Vcov Method for Local Polynomial Density Estimation and Inference
bw_MSE

Internal function.
coef.lpbwdensity

Coef Method for Local Polynomial Density Bandwidth Selection
coef.lpdensity

Coef Method for Local Polynomial Density Estimation and Inference
plot.lpdensity

Plot Method for Local Polynomial Density Estimation and Inference
bw_IMSE

Internal function.
Tgenerate

Internal function.
Cgenerate

Internal function.
Sgenerate

Internal function.
Ggenerate

Internal function.
bw_ROT

Internal function.
lpdensity_fn

Supporting Function for lpdensity
bw_IROT

Internal function.