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.
Returns
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.