Selects the bandwidth of a local polynomial kernel (regression or variance) estimator using (standard or modified) CV, GCV or MASE criteria. See npsp::h.cv for details.

# S3 method for npf.bin
h.cv(bin, var, cor, ...)

# S3 method for npf.bin.res2
h.cv(bin, var, cor, ...)

Arguments

bin

object used to select a method (binned data).

var

(optional) a vector or an object of class npf.var with the estimated (or theoretical) variances.

cor

(optional) intra-curve correlation matrix or semivariogram model (svarmod-class) of the data. Defaults to the identity matrix.

...

further arguments passed to npsp::h.cv.