Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

kernelfun

Smoothing kernels


Description

The generic function kernelfun creates a smoothing kernel function.

Usage

kernel_properties(name, derivative = FALSE)

kernelfun(name, ...)

## S3 method for class ''function''
kernelfun(name, ...)

## S3 method for class 'character'
kernelfun(name, derivative = FALSE, ...)

.kernelsList()

Arguments

name

character. The name of the kernel to be used. Authorized kernels are listed in .kernelsList().

derivative

logical. If TRUE, the derivative of the kernel is returned.

...

Additional arguments to be passed to the kernel function.

Value

A function.

See Also

density in package stats.

Examples

kernel_properties("gaussian")

k <- kernelfun("epanechnikov")
curve(k(x), xlim = c(-1, 1))

statip

Statistical Functions for Probability Distributions and Regression

v0.2.3
GPL-3
Authors
Paul Poncet [aut, cre], The R Core Team [aut, cph] (C function 'BinDist' copied from package 'stats'), The R Foundation [cph] (C function 'BinDist' copied from package 'stats'), Adrian Baddeley [ctb] (C function 'BinDist' copied from package 'stats')
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.