LOOCV_grid: LOOCV Leave-one-out cross-validation

Description Usage Arguments Value See Also

Description

Evaluate leave-one-out cross-validation (LOOCV) for the Nadaraya-Watson estimator over a grid

Usage

1
2
LOOCV_grid(x, y, hgrid = seq(from = 0.05, to = 3, length.out = 80),
  weight_probs = c(0.05, 0.95))

Arguments

x

'x' values.

y

'y' values.

hgrid

The grid of test bandwidths.

weight_probs

Specification for what percentage of points are used in the weight function.

Value

The minimum bandwidth h, the minimum CV error and the grid of test bandwidths.

See Also

Other NOIS CV functions: MCV_grid, NOIS_fit, PCV_grid


hoangtt1989/NOIS documentation built on May 20, 2019, 2:08 p.m.