lscv.exact | R Documentation |
This function performs the exact computation of the least squares cross validation statistic for one-dimensional kernel density estimation and a constant bandwidth.
At the time of writing, it is implemented only for the Gaussian kernel (with the standard deviation of 0.4; Locfit's standard).
lscv.exact(x, h=0)
x |
Numeric data vector. |
h |
The bandwidth. If |
A vector of the LSCV statistic and the fitted degrees of freedom.
lscv
,
lscvplot
data(geyser, package="locfit")
lscv.exact(lp(geyser,h=0.25))
# equivalent form using lscv
lscv(lp(geyser, h=0.25), exact=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.