nsrk: Normal scale rule for kernel density estimation

Description Usage Arguments Value References Examples

View source: R/nsrk.R

Description

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

Usage

1
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

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

FiSh documentation built on May 4, 2021, 1:05 a.m.