coef.lpdensity: Coef Method for Local Polynomial Density Estimation and...

View source: R/lpdensity_methods.R

coef.lpdensityR Documentation

Coef Method for Local Polynomial Density Estimation and Inference

Description

The coef method for local polynomial density objects.

Usage

## S3 method for class 'lpdensity'
coef(object, ...)

Arguments

object

Class "lpdensity" object, obtained by calling lpdensity.

...

Additional options.

Value

A matrix containing grid points and density estimates using p- and q-th order local polynomials.

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

lpdensity for local polynomial density estimation.

Supported methods: coef.lpdensity, confint.lpdensity, plot.lpdensity, print.lpdensity, summary.lpdensity, vcov.lpdensity.

Examples

# Generate a random sample
set.seed(42); X <- rnorm(2000)

# Estimate density and report results
coef(lpdensity(data = X, bwselect = "imse-dpi"))


lpdensity documentation built on Oct. 6, 2024, 9:06 a.m.