View source: R/lpbwdensity_methods.R
coef.lpbwdensity | R Documentation |
The coef method for local polynomial density bandwidth selection objects.
## S3 method for class 'lpbwdensity'
coef(object, ...)
object |
Class "lpbwdensity" object, obtained by calling |
... |
Other arguments. |
A matrix containing grid points and selected bandwidths.
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
coef(lpbwdensity(X))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.