Description Usage Arguments Value Examples
This function takes a plsda-pred, a prediction computed by the predict function of the plsda package and compare it to the y.exp vector provide. It will returns the residuals, the confusion matrix and the error rate.
1 | validation(result, y.exp)
|
result |
The result obtained with the predict.plsda of this package, must contains y.hat and Y.hat as a list. |
y.exp |
The expected y, it will be confronted to y.hat found in the result parameter, so it must have the same number of items/ |
A plsda-valid object that contains residuals, confusion matrix and error rate.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.