coef.lpcde: Coef method for local polynomial density conditional...

View source: R/lpcde_methods.R

coef.lpcdeR Documentation

Coef method for local polynomial density conditional estimation

Description

The coef method for local polynomial conditional density objects.

Usage

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

Arguments

object

Class "lpcde" object, obtained by calling lpcde.

...

Additional options.

Value

outputs

A matrix containing the estimates

Author(s)

Matias D. Cattaneo (maintainer). matias.d.cattaneo@gmail.com.

Rajita Chandak. rajita.chandak@gmail.com.

Michael Jansson. michael.jansson.berkeley@gmail.com.

Xinwei Ma. xinweima.pku@gmail.com.

See Also

lpcde for local polynomial conditional density estimation.

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

Examples

n <- 100
x_data <- as.matrix(rnorm(n, mean = 0, sd = 1))
y_data <- as.matrix(rnorm(n, mean = 0, sd = 1))
y_grid <- stats::quantile(y_data, seq(from = 0.1, to = 0.9, by = 0.1))
# density estimation
model1 <- lpcde::lpcde(x_data = x_data, y_data = y_data, y_grid = y_grid, x = 0, bw = 0.5)
coef(model1)


lpcde documentation built on May 21, 2026, 5:09 p.m.