Learn R Programming

kdensity (version 1.1.1)

get_kernel: Helper function that gets a kernel function for kdensity.

Description

Helper function that gets a kernel function for kdensity.

Usage

get_kernel(kernel_str)

Value

a kernel function of the format k(u) with integral normalized to 1.

Arguments

kernel_str

a string specifying which kernel to use.