Welcome to ClientVPS Mirrors

README

Kernel Density and Local Polynomial Regression Methods

The package nprobust implements estimation, inference, bandwidth selection, and graphical procedures for kernel density and local polynomial regression methods, including robust bias-corrected confidence intervals.

See references for methodological and practical details.

Website: https://nppackages.github.io/.

Source code: https://github.com/nppackages/nprobust.

Authors

Sebastian Calonico (scalonico@ucdavis.edu)

Matias D. Cattaneo (matias.d.cattaneo@gmail.com)

Max H. Farrell (mhfarrell@gmail.com)

Installation

To install/update use R:

install.packages("nprobust")

Usage

library(nprobust)

# Cholesterol trial data used by the Python and Stata examples.
data <- read.csv("../nprobust_data.csv")
control <- data$t == 0

# Local polynomial regression with robust bias-corrected confidence intervals.
result <- lprobust(data$cholf[control], data$chol1[control])
summary(result)

# Data-driven bandwidth selection.
bw <- lpbwselect(data$cholf[control], data$chol1[control],
                 bwselect = "mse-dpi", neval = 7)
summary(bw)

# Kernel density estimation.
density <- kdrobust(data$chol1[control], neval = 30)
summary(density)

# Kernel density bandwidth selection.
summary(kdbwselect(data$chol1[control], bwselect = "imse-dpi"))

# Plot a local polynomial fit.
nprobust.plot(result, xlabel = "chol1", ylabel = "cholf")

Dependencies

References

For overviews and introductions, see nppackages website.

Software and Implementation

Technical and Methodological

Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.

This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.