bcv: Biased Cross-Validation for Bandwidth Selection

Description Usage Arguments Value References See Also Examples

View source: R/ucv.R

Description

Uses biased cross-validation to select the bandwidth of a Gaussian kernel density estimator.

Usage

1
bcv(x, nb = 1000, lower, upper)

Arguments

x

a numeric vector

nb

number of bins to use.

lower, upper

Range over which to minimize. The default is almost always satisfactory.

Value

a bandwidth

References

Scott, D. W. (1992) Multivariate Density Estimation: Theory, Practice, and Visualization. Wiley.

Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.

See Also

ucv, width.SJ, density

Examples

1
bcv(geyser$duration)

Example output

[1] 0.8940809

MASS documentation built on May 3, 2021, 5:08 p.m.

Related to bcv in MASS...