summary.lpbwdensity: Summary Method for Local Polynomial Density Bandwidth...

Description Usage Arguments Author(s) See Also Examples

View source: R/lpbwdensity_methods.R

Description

The summary method for local polynomial density bandwidth selection objects.

Usage

1
2
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# 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)

lpdensity documentation built on March 3, 2021, 1:11 a.m.