cv_bandwidth: Tune bandwidth

Description Usage Arguments

Description

barplot tunes by LOO cross-validation the bandwidth for Kernel Regression Smoother.

Usage

1
2
cv_bandwidth(x, y, hmin = (max(x) - min(x))/20, hmax = (max(x) - min(x))/2,
  nbh = 25, graph.CV = TRUE)

Arguments

x

a vector with the input values

y

a vector with the output values

hmin

the minimum bandwidth

hmax

the maximum bandwidth

nbh

size of the grid of bandwidth

graph.CV

If TRUE plot the CV MSE against bandwidth values


chavent/modvarsel documentation built on May 22, 2019, 2:22 p.m.