NN.CV(CLEg) | R Documentation |
It finds the cross validation error rate, as done in package pls, for given training set and regression method.
NN.CV(Train, Cl.Train, Reg = plsr, ncomp = 5)
Train |
Training sample |
Cl.Train |
Class of training sample |
Reg |
ethod of regression, which can be plsr or pcr |
ncomp |
Number of components taken in the pls/pc regression. For example, ncomp=5 means it will take components 1, 2, ..., 5. |
error rate
Shahidul Islam