powered by
Estimation of the optimal subsample size for bagged CV
mopt(x, N, r = 1000, s = 100, ncores = parallel::detectCores())
Vector. Sample.
Positive integer. Number of subsamples for the bagged bandwidth.
Positive integer. Size of the subsamples.
Positive integer. Number of subsamples.
Positive integer. Number of cores with which to parallelize the computations.
Estimate of the optimal subsample size.
Estimates the optimal size of the subsamples for the bagged CV bandwidth selector.
# NOT RUN { set.seed(1) x <- rt(10^5, 5) mopt(x, 500, 500, 10, 2) # }
Run the code above in your browser using DataLab