inst/shiny/bw-selection/README.md

Kernel and bandwidth selection

The value for a density plot is computed using a function $K$ (the kernel) and a bandwidth $h$. Different choices for the either lead to different graphics.

R provided the following kernel choices: c("gaussian", "epanechnikov", "rectangular", "triangular", "biweight", "cosine", "optcosine").

The bandwidth can be chosen automatically through one of the algorithms: "nrd0", "nrd", "ucv", "bcv", "SJ". The default value, "nrd0" is found by:

As n get's larger, the bandwidth does too, but much more slowly.

Alternatively, one can specify the bandwidth using a numeric value.



Try the UsingR package in your browser

Any scripts or data that you put into this service are public.

UsingR documentation built on March 18, 2022, 7:32 p.m.