LOCFIT: R and S-Plus Help | ||||
lscv(x, ..., exact=F)
The calling sequence for lscv matches those for the
locfit or locfit.raw functions.
Note that this function is only designed for density estimation
in one dimension. The returned object contains the
least squares cross validation score for the fit.
Arguments:
The computation of \int \hat f(x)^2 dx is performed numerically. For kernel density estimation, this is unlikely to agree exactly with other LSCV routines, which may perform the integration analytically.
A vector consisting of the LSCV statistic and fitted degrees of freedom.
Examples:
# approximate calculation for a kernel density estimate data(geyser) lscv(~geyser, alpha=cbind(0,1), ev="grid", mg=100, deg=0, flim=c(1,6), kern="gauss") # same computation, exact lscv(geyser,alpha=1,exact=T)
Key Words:
htest
| ||||
|
Built: Thu Dec 2 16:56:05 EST 2004
Copyright © 2004, Catherine Loader locfit@herine.net | ||||