KNN.covariate.test(CLEg)R Documentation

KNN autocovariates test data

Description

This function computes the autocovariates in terms of nearest neighbor in test set defined by Holmes et al. (2002).

Usage

KNN.covariate.test(K, train, cl, test, ...)

Arguments

K value of nearest neighbor defined by Holmes et al. (2002)
train training data set
cl class levels for the training set
test test data
... optional arguments

Value

The fraction of mis-classifications.

Author(s)

Shahidul Islam

References

C. C. Holmes and N. M. Adams Likelihood inference in nearest-neighbour classification models Biometrika (2003), 90, 99–112.

See Also

FitNNReg

Examples



[Package CLEg version 2.0 Index]