bw: Kernel density bandwidth estimators.

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

Calculate the bandwidth estimator using various methods.

Usage

1
2
3
4
5

Arguments

x

A vector of data points.

type

One of the following options:

  • -1: Silverman's rule of thumb.

  • -2: Silverman's adapted rule of thumb.

  • >0: The real number is returned without any calculations.

Value

Silverman: Bandwidth estimator based on Silverman's rule of thumb.

Silverman2: Bandwidth estimator based on Silverman's adapted rule of thumb.

bw: Bandwidth estimator based on the selected method.

Examples

1
2
3
4
5
6
7
8
9
set.seed(1)
x <- rnorm(100)
Silverman(x)

Silverman2(x)

bw(x, -1)
bw(x, -2)
bw(x, 0.5)

alR documentation built on Dec. 7, 2017, 5:03 p.m.

Related to bw in alR...