powered by
Generalized bagging CV bandwidth selector for Parzen-Rosenblatt estimator
hsss_dens(x, r, s, nb = r, h0, h1, ncores = parallel::detectCores())
Bagged CV bandwidth.
Vector. Sample.
Positive integer. Size of the subsamples.
Positive integer. Number of subsamples.
Positive integer. Number of bins.
Positive real number. Range over which to minimize, left bound.
Positive real number. Range over which to minimize, right bound.
Positive integer. Number of cores with which to parallelize the computations.
Generalized bagging cross-validation bandwidth selector for the Parzen-Rosenblatt estimator.
set.seed(1) x <- rnorm(10^5) hsss_dens(x, 5000, 100, 1000, 0.001, 1, 2)
Run the code above in your browser using DataLab