Learn R Programming

gplm (version 0.7-4)

kernel.constants: Kernel constants

Description

Calculates several constants of a (product) kernel function.

Usage

kernel.constants(kernel = "biweight", d = 1, product = TRUE)

Arguments

kernel
text string, see kernel.function
d
integer (dimension of the kernel)
product
(if d>1) product or spherical kernel

Value

List with components:

Details

The constants which are calculated are the second moment, the square norm and the canonical bandwidth of the kernel (only the two latter terms depend on the dimension d).

See Also

kernel.function

Examples

Run this code
  kernel.constants()                  ## default (biweight), d=1
  kernel.constants("epanechnikov",1)  ## epanechnikov, d=1
  kernel.constants("epanechnikov",2)  ## product epanechnikov, d=2

Run the code above in your browser using DataLab