
Last chance! 50% off unlimited learning
Sale ends in
cv(x, h, ...)
sm.options
function, through
a mechanism which limits their effect only to this call of the function;
those relevant for this function are the following:hcv
and does not usually need to be called
independently.hcv
, hsj
, hnorm
, sj
x <- rnorm(50)
hgrid <- seq(0.1, 1, length = 10)
cvgrid <- vector("numeric", length = length(hgrid))
for (i in 1:10) cvgrid[i] <- cv(x, hgrid[i])
plot(hgrid, cvgrid, type="l")
Run the code above in your browser using DataLab