compute_kernel: Symmetric kernel function

Description Usage Arguments Details Value

View source: R/kernel.R

Description

Kernel function with bandwidth

Usage

1
2
3
4
5
compute_kernel(
  x,
  type = c("Gaussian", "Epanechinikov", "Tricube", "Boxcar"),
  h
)

Arguments

x

point where the kernel function is evaluated

type

which kernel to use? c("Gaussian", "Epanechinikov", "Tricube", "Boxcar").

h

bandwidth

Details

Gaussian kernel function.

K_h(x) = \frac{1}{√{2π h}} \exp( - \frac{x^2}{2h})

Value

Kernel function value given x


ygeunkim/ceshat documentation built on Dec. 16, 2019, 12:39 p.m.