nsrk {FiSh}R Documentation

Normal scale rule for kernel density estimation

Description

Bandwidth selector for non-parametric estimation. Estimates the optimal AMISE bandwidth using the Normal Scale Rule with Gaussian kernel.

Usage

nsrk(x, log_trsf=FALSE)

Arguments

x

Univariate data.

log_trsf

Logical flag: if TRUE the data are log-transformed (usually used for skewed positive data). By default log_trsf = FALSE.

Value

The bandwidth value.

References

M. P. Wand and M. C. Jones, (1995). Kernel Smoothing. Chapman and Hall, London.

Examples


x <- rnorm(1000)
h <- nsrk(x)


[Package FiSh version 1.1 Index]