tss_dens {baggingbwsel}R Documentation

Second order bagging CV bandwidth selector for Parzen-Rosenblatt estimator

Description

Second order bagging CV bandwidth selector for Parzen-Rosenblatt estimator

Usage

tss_dens(x, r, s, h0, h1, nb = 1000, ncores = 1)

Arguments

x

Vector. Sample.

r

Vector. The two subsample sizes.

s

Positive integer. Number of subsamples.

h0

Positive real number. Range over which to minimize, left bound.

h1

Positive real number. Range over which to minimize, right bound.

nb

Positive integer. Number of bins.

ncores

Positive integer. Number of cores with which to parallelize the computations.

Details

Second order bagging cross-validation bandwidth selector for the Parzen-Rosenblatt estimator.

Value

Second order bagging CV bandwidth.

Examples

set.seed(1)
x <- rnorm(10^5)
tss_dens(x, 5000, 10, 0.01, 1, 1000, 2)


[Package baggingbwsel version 1.1 Index]