Last chance! 50% off unlimited learning
Sale ends in
powered by
Computes least squares cross-validation (CV) bandwidth (BW) for log domain KDE.
bw.logCV(x, grid = 21, NB = 512)
numeric vector of the data. Must be strictly positive, will be log transformed during estimation.
number of points used for BW selection CV grid.
number of points at which to estimate the KDE at during the CV loop.
bw the optimal least squares CV bandwidth.
Silverman, B. W. (1986). Density estimation for statistics and data analysis. Monographs on Statistics and Applied Probability. 26.
Stone, C. J. (1984). An asymptotically optimal window selection rule for kernel density estimates. The Annals of Statistics, 12(4), 1285-1297.
# NOT RUN { bw.logCV(rchisq(100,10), grid=21, NB=512) # }
Run the code above in your browser using DataLab