FAQ - Frequently Asked Questions
Issue:
-
How do I retrieve and display predictions from a model structure in the command window?
Possible Solutions:
-
The predictions are stored in the .pred field of a model or prediction/test structure (this is the model or test saved from a GUI or output by a command-line function). For a regression method, the y-block predictions are in the second cell (the first cell is generally empty). If you model is named "plscal", you can use:
>> plscal.pred{2}to display the predictions. Likewise, for new test data, if you save the test data, it is in the same field.
Still having problems? Check our documentation Wiki or try writing our helpdesk at helpdesk@eigenvector.com