Run a predictionTest or baselineAlgTest
Runs the test defined in a predictionTest or
baselineAlgTest object
runTest(object, X, y, ...) ## S4 method for signature 'PLSRTest' runTest(object, X, y) ## S4 method for signature 'ridgeRegressionTest' runTest(object, X, y) ## S4 method for signature 'baselineAlgTest' runTest(object, X, y, predictionTest, postproc, verbose = FALSE)
| object | An object of class  | 
| X | A matrix. The spectra to use in the test | 
| y | A vector or matrix. The response(s) to use in the test | 
| predictionTest | A  | 
| postproc | A function, used to postprocess the baseline corrected spectra prior to prediction testing. The function should take a matrix of spectra as its only argument, and return a matrix of postprocessed spectra | 
| verbose | Logical, specifying whether the test should print out
progress information.  Default is  | 
| ... | Other arguments.   Currently only used by the
 | 
runTest returns an object of class
predictionResult or baselineAlgResult.
signature(object = "baselineAlgTest")Baseline corrects the spectra, optionally postprocesses them, and runs a prediction test on the corrected spectra.
signature(object = "PLSRTest")Runs PLSR on the data and calculates the cross-validated RMSEP
signature(object = "ridgeRegressionTest")Runs ridge regression on the data and calculates the GCV
Bjørn-Helge Mevik and Kristian Hovde Liland
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.