[Paper Review] nprobust: Nonparametric Kernel-Based Estimation and Robust Bias-Corrected Inference
This paper introduces the nprobust package, a comprehensive R and Stata toolkit for nonparametric kernel-based estimation and robust bias-corrected inference. It proposes pre-asymptotic formulas and heteroskedasticity-robust variance estimators to improve finite-sample inference, achieving near-nominal coverage for 95% confidence intervals even at boundary points, outperforming existing packages in simulation studies.
Nonparametric kernel density and local polynomial regression estimators are very popular in Statistics, Economics, and many other disciplines. They are routinely employed in applied work, either as part of the main empirical analysis or as a preliminary ingredient entering some other estimation or inference procedure. This article describes the main methodological and numerical features of the software package nprobust, which offers an array of estimation and inference procedures for nonparametric kernel-based density and local polynomial regression methods, implemented in both the R and Stata statistical platforms. The package includes not only classical bandwidth selection, estimation, and inference methods (Wand and Jones, 1995; Fan and Gijbels, 1996), but also other recent developments in the statistics and econometrics literatures such as robust bias-corrected inference and coverage error optimal bandwidth selection (Calonico, Cattaneo and Farrell, 2018, 2019). Furthermore, this article also proposes a simple way of estimating optimal bandwidths in practice that always delivers the optimal mean square error convergence rate regardless of the specific evaluation point, that is, no matter whether it is implemented at a boundary or interior point. Numerical performance is illustrated using an empirical application and simulated data, where a detailed numerical comparison with other R packages is given.
Motivation & Objective
- To develop a unified, user-friendly software package for nonparametric kernel density and local polynomial regression in R and Stata.
- To address the poor finite-sample performance of conventional inference methods in nonparametric kernel estimation, especially at boundary points.
- To implement modern, theoretically grounded bandwidth selection methods that ensure optimal mean square error convergence regardless of evaluation point location.
- To provide robust inference procedures using heteroskedasticity-consistent and cluster-robust variance estimators, improving coverage accuracy.
- To offer a practical, data-driven bandwidth selection method that is boundary rate adaptive and achieves optimal convergence rates.
Proposed method
- The package uses pre-asymptotic formulas for local polynomial regression estimators and variance estimators, improving finite-sample performance over asymptotic approximations.
- It implements bandwidth selection based on mean square error (MSE) and integrated MSE (IMSE) approximations for point estimation.
- It employs coverage error (CE) approximations via higher-order Edgeworth expansions for optimal bandwidth selection in confidence interval construction.
- Robust bias-corrected inference is achieved using heteroskedasticity-consistent (HC) and cluster-robust variance estimators, replacing homoskedasticity-consistent alternatives.
- The default bandwidth selector is boundary rate adaptive, ensuring optimal mean square error convergence at both interior and boundary points.
- All procedures are fully data-driven and designed with finite-sample properties in mind, drawing on recent theoretical advances in nonparametric statistics and econometrics.
Experimental results
Research questions
- RQ1Can a nonparametric kernel-based inference procedure achieve near-nominal coverage for 95% confidence intervals in finite samples, especially at boundary points?
- RQ2Does robust bias correction using HC and cluster-robust variance estimators significantly improve inference accuracy compared to conventional homoskedasticity-consistent methods?
- RQ3Can a single bandwidth selection method achieve optimal mean square error convergence rate regardless of whether the evaluation point is interior or boundary?
- RQ4How does the performance of nprobust compare to other R packages like np, locfit, and lpridge in terms of point estimation and inference accuracy?
- RQ5What is the empirical coverage of confidence intervals when using population-optimal versus cross-validated bandwidths in finite samples?
Key findings
- The nprobust package delivers empirical coverage of 94% for 95% confidence intervals at the boundary point x=0, significantly outperforming the np package, which reported 0% and 76.2% coverage under similar conditions.
- All inference procedures in nprobust achieve near-nominal coverage across evaluation points and bandwidth selection methods, demonstrating robustness to local curvature and boundary effects.
- The package’s default bandwidth selector ensures optimal mean square error convergence rate at both interior and boundary points, achieving boundary rate adaptivity.
- Point estimation in nprobust performs comparably to other packages in terms of mean square error, but inference is markedly superior.
- Simulation results show that nprobust’s bandwidth selectors perform well relative to their population targets, with ROT selectors also delivering strong average performance.
- The use of pre-asymptotic formulas and robust variance estimators leads to higher-order boundary carpentry, improving the accuracy of inference at boundary points.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.