Learn R Programming

⚠️There's a newer version (2.5) of this package.Take me there.

lpdensity (version 2.4)

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.4

License

GPL-2

Maintainer

Xinwei Ma

Last Published

January 21st, 2023

Functions in lpdensity (2.4)

lpdensityUnique

Internal function.
plot.lpdensity

Plot Method for Local Polynomial Density Estimation and Inference
confint.lpdensity

Confint Method for Local Polynomial Density Estimation and Inference
lpdensity-package

lpdensity: Local Polynomial Density Estimation and Inference
lpdensity.plot

Plot Method for Local Polynomial Density Estimation and Inference
lpdensity

Local Polynomial Density Estimation and Inference
lpdensity_fn

Supporting Function for lpdensity
print.lpbwdensity

Print Method for Local Polynomial Density Bandwidth Selection
lpbwdensity

Data-driven Bandwidth Selection for Local Polynomial Density Estimators
normal_dgps

Internal function.
summary.lpbwdensity

Summary Method for Local Polynomial Density Bandwidth Selection
summary.lpdensity

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

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

Print Method for Local Polynomial Density Estimation and Inference
coef.lpdensity

Coef Method for Local Polynomial Density Estimation and Inference
bw_MSE

Internal function.
bw_IMSE

Internal function.
coef.lpbwdensity

Coef Method for Local Polynomial Density Bandwidth Selection
Ggenerate

Internal function.
bw_IROT

Internal function.
Cgenerate

Internal function.
Sgenerate

Internal function.
bw_ROT

Internal function.
Tgenerate

Internal function.