Hlscv(x, Hstart, binned=FALSE, bgridsize, amise=FALSE, deriv.order=0,
verbose=FALSE, optim.fun="nlm", trunc)
Hlscv.diag(x, Hstart, binned=FALSE, bgridsize, amise=FALSE, deriv.order=0,
verbose=FALSE, optim.fun="nlm", trunc)
hlscv(x, binned=TRUE, bgridsize, amise=FALSE, deriv.order=0)amise=TRUE then the minimal LSCV value is returned too.hlscv is the univariate SCV
selector of Bowman (1984) and Rudemo (1982). Hlscv is a
multivariate generalisation of this. Use Hlscv for full bandwidth matrices and Hlscv.diag
for diagonal bandwidth matrices. Truncation of the parameter space is usually required for the LSCV selector,
for r > 0, to find a reasonable solution to the numerical optimisation.
If a candidate matrix H is
such that det(H) is not in [1/trunc, trunc]*det(H0) or
abs(LSCV(H)) > trunc*abs(LSCV0) then the LSCV(H) is reset to LSCV0 where
H0=Hns(x) and LSCV0=LSCV(H0).
For details about the advanced options for binned,Hstart,
see Hpi.
Chacon, J.E. & Duong, T. (2014) Efficient recursive algorithms for functionals based on higher order derivatives of the multivariate Gaussian density. Statistics & Computing. 25, 959--974. Rudemo, M. (1982) Empirical choice of histograms and kernel density estimators. Scandinavian Journal of Statistics. 9, 65-78.
Hbcv, Hpi, Hscvlibrary(MASS)
data(forbes)
Hlscv(forbes)
hlscv(forbes$bp)Run the code above in your browser using DataLab