Description Usage Arguments Value References Examples
Least square cross validation to determine bandwidth for kernel density estimation.
1 | rhrBaseLSCV(x, y, h)
|
x |
Numeric vector, the x coordinates. |
y |
Numeric vector, the y cooridnates. |
h |
Numeric vector, candidate bandwidth. |
Numeric vector, the score value for each of the proposed candidate bandwidths.
http://www.esajournals.org/doi/abs/10.2307/2265701
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)]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.