View source: R/lpdensity_methods.R
vcov.lpdensity | R Documentation |
The vcov method for local polynomial density objects.
## S3 method for class 'lpdensity'
vcov(object, ...)
object |
Class "lpdensity" object, obtained by calling |
... |
Additional options. |
stdErr |
A matrix containing grid points and standard errors using p- and q-th order local polynomials. |
CovMat_p |
The variance-covariance matrix corresponding to |
CovMat_q |
The variance-covariance matrix corresponding to |
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
vcov(lpdensity(data = X, bwselect = "imse-dpi"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.