EqKern: Equivalent kernel for local linear regression.

Description Usage Arguments Value Examples

View source: R/kernels.R

Description

Calculates equivalent kernel for local polynomial regression.

Usage

1
EqKern(kernel = "uniform", boundary = TRUE, order = 0)

Arguments

kernel

kernel type. Can be a function supported on [-1, 1] (boundary kernel) or [0,1] (interior kernel), or else one of "uniform" (I(|u|<1)), "triangular" ((1-|u|)I(|u|<1)), or "epanechnikov" (k(u)=(3/4)(1-u^2)I(|u|<1)).

boundary

Logical scalar, specifying whether we are at a boundary.

order

Order of local polynomial: 0 means local constant, 1 local linear, 2 local quadratic etc.

Value

Equivalent kernel function.

Examples

1
EqKern(kernel = "uniform", order = 2)

kolesarm/RDHonest documentation built on April 3, 2018, 11:08 a.m.