View source: R/lpdensity_methods.R
coef.lpdensity | R Documentation |
The coef method for local polynomial density objects.
## S3 method for class 'lpdensity'
coef(object, ...)
object |
Class "lpdensity" object, obtained by calling |
... |
Additional options. |
A matrix containing grid points and density estimates using p- and q-th order local polynomials.
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.
lpdensity
for local polynomial density estimation.
Supported methods: coef.lpdensity
, confint.lpdensity
,
plot.lpdensity
, print.lpdensity
, summary.lpdensity
,
vcov.lpdensity
.
# Generate a random sample
set.seed(42); X <- rnorm(2000)
# Estimate density and report results
coef(lpdensity(data = X, bwselect = "imse-dpi"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.