NN.CV(CLEg)R Documentation

Cross validation error rate

Description

It finds the cross validation error rate, as done in package pls, for given training set and regression method.

Usage

NN.CV(Train, Cl.Train, Reg = plsr, ncomp = 5)

Arguments

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.

Value

error rate

Author(s)

Shahidul Islam

See Also

OptimalK

Examples






[Package CLEg version 2.0 Index]