Learn R Programming

MASS (version 7.3-60.0.1)

ucv: Unbiased Cross-Validation for Bandwidth Selection

Description

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

Usage

ucv(x, nb = 1000, lower, upper)

Value

a bandwidth.

Arguments

x

a numeric vector

nb

number of bins to use.

lower, upper

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

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

bcv, width.SJ, density

Examples

Run this code
ucv(geyser$duration)

Run the code above in your browser using DataLab