Skip to contents

Integer codes used by morie's C++ semiparametric bridge to select the kernel function for local-polynomial smoothing. Mirror the Python morie.semipar.KernelType enum so an R caller can pass these constants directly to any C++ kernel routine.

Usage

KERNEL_GAUSSIAN

KERNEL_EPANECHNIKOV

KERNEL_UNIFORM

KERNEL_TRIANGULAR

KERNEL_BIWEIGHT

Format

Integer scalars (0L, 1L, 2L, 3L, 4L).

An object of class integer of length 1.

An object of class integer of length 1.

An object of class integer of length 1.

An object of class integer of length 1.

An object of class integer of length 1.

Details

  • KERNEL_GAUSSIAN: \(K(u) = (1/\sqrt{2\pi}) \exp(-u^2/2)\)

  • KERNEL_EPANECHNIKOV: \(K(u) = (3/4)(1-u^2)\) on |u| <= 1

  • KERNEL_UNIFORM: \(K(u) = 1/2\) on |u| <= 1

  • KERNEL_TRIANGULAR: \(K(u) = 1 - |u|\) on |u| <= 1

  • KERNEL_BIWEIGHT: \(K(u) = (15/16)(1-u^2)^2\) on |u| <= 1