NMath Stats User's Guide

TOC | Previous | Next | Index

12.3 Predicted Values (.NET, C#, CSharp, VB, Visual Basic, F#)

Once you've performed a PLS regression (Section 12.1), you can calculate the predicted value of the response variable for a given value of the predictor variable.

Code Example – C# partial least squares (PLS)

double plsYhat = pls.Predict(x);

or for a set of predictor values:

Code Example – C# partial least squares (PLS)

DoubleVector plsYhatVec = pls.Predict(A);

Top

Top