knnregl1cv {WASP}R Documentation

Leave one out cross validation.

Description

Leave one out cross validation.

Usage

knnregl1cv(x, z, k = 0, pw)

Arguments

x

A vector of response.

z

A matrix of predictors.

k

The number of nearest neighbours used. The default is 0, indicating Lall and Sharma default is used.

pw

A vector of partial weights of the same length of z.

Value

A vector of L1CV estimates of the response.

References

Lall, U., Sharma, A., 1996. A Nearest Neighbor Bootstrap For Resampling Hydrologic Time Series. Water Resources Research, 32(3): 679-693.

Sharma, A., Mehrotra, R., 2014. An information theoretic alternative to model a natural system using observational information alone. Water Resources Research, 50(1): 650-660.


[Package WASP version 1.4.3 Index]