Learn R Programming

probhat (version 0.3.1)

11_discrete_kernels: Discrete Kernels

Description

Discrete kernels (without standardized intervals), for discrete kernel smoothing.

NOTE THAT THESE MAY BE REMOVED.

Usage

binomial.dkernel (bw)

Arguments

bw

Integer, the bandwidth. This should be a positive odd number. (Even numbers are rounded up).

Value

A dkernel object.

Details

NOTE THAT THESE MAY BE REMOVED.

This is a constructor for a binomial kernel object.

Currently, this object is a named list (with pmf and cdf components).

Here, the PMF is symmetric about zero (in contrast to how a binomial distribution is normally defined), and has zero-probability outside the interval [-hbw, hbw], where: hbw = (bw - 1) / 2

This object is used inside discrete kernel smoothing. (In which case, you provide the constructor, not the object).

References

Refer to the vignette for an overview, references and better examples.

See Also

Continuous Kernels

plot.dkernel

Discrete Kernel Smoothing

Examples

Run this code
# NOT RUN {
k <- binomial.dkernel (5)
plot (k)

k$pmf (-2:2)
# }

Run the code above in your browser using DataLab