View source: R/lpbwdensity_methods.R
summary.lpbwdensity | R Documentation |
The summary method for local polynomial density bandwidth selection objects.
## S3 method for class 'lpbwdensity'
summary(object, ...)
object |
Class "lpbwdensity" object, obtained by calling |
... |
Additional options, including (i) |
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.
lpbwdensity
for data-driven bandwidth selection.
Supported methods: coef.lpbwdensity
, print.lpbwdensity
, summary.lpbwdensity
.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.