powered by
Bagged CV bandwidth selector
bagcv(x, r, s, h0, h1, nb = r, ncores = parallel::detectCores())
Vector. Sample.
Positive integer. Size of the subsamples.
Positive integer. Number of subsamples.
Positive real number. Range over which to minimize, left bound.
Positive real number. Range over which to minimize, right bound.
Positive integer. Number of bins to use in the bw.ucv function.
bw.ucv
Positive integer. Number of cores with which to parallelize the computations.
Bagged CV bandwidth.
Bagged cross-validation bandwidth for kernel density estimation.
# NOT RUN { set.seed(1) x <- rnorm(10^6) bagcv(x, 5000, 100, 0.01, 1, 5000, 2) # }
Run the code above in your browser using DataLab