rhrBaseLSCV: Least Square Cross Validation

Description Usage Arguments Value References Examples

Description

Least square cross validation to determine bandwidth for kernel density estimation.

Usage

1
rhrBaseLSCV(x, y, h)

Arguments

x

Numeric vector, the x coordinates.

y

Numeric vector, the y cooridnates.

h

Numeric vector, candidate bandwidth.

Value

Numeric vector, the score value for each of the proposed candidate bandwidths.

References

http://www.esajournals.org/doi/abs/10.2307/2265701

Examples

1
2
3
4
5
6
set.seed(123)
x <- rnorm(500)
y <- rnorm(500)
h <- seq(0.1, 5, 0.1)
s <- rhrBase::rhrBaseLSCV(x, y, h)
h[which.min(s)]

jmsigner/rhrBase documentation built on May 19, 2019, 2:57 p.m.