summary.lpbwdensity {lpdensity}R Documentation

Summary Method for Local Polynomial Density Bandwidth Selection

Description

The summary method for local polynomial density bandwidth selection objects.

Usage

## S3 method for class 'lpbwdensity'
summary(object, ...)

Arguments

object

Class "lpbwdensity" object, obtained by calling lpbwdensity.

...

Additional options, including (i) grid specifies a subset of grid points to display the bandwidth; (ii) gridIndex specifies the indices of grid points to display the bandwidth.

Author(s)

Matias D. Cattaneo, Princeton University. cattaneo@princeton.edu.

Michael Jansson, University of California Berkeley. mjansson@econ.berkeley.edu.

Xinwei Ma (maintainer), University of California San Diego. x1ma@ucsd.edu.

See Also

lpbwdensity for data-driven bandwidth selection.

Supported methods: coef.lpbwdensity, print.lpbwdensity, summary.lpbwdensity.

Examples

# Generate a random sample
set.seed(42); X <- rnorm(2000)

# Construct bandwidth
bw1 <- lpbwdensity(X)
summary(bw1)

# Display bandwidths for a subset of grid points
summary(bw1, grid=bw1$BW[4:10, "grid"])
summary(bw1, gridIndex=4:10)


[Package lpdensity version 2.4 Index]