The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



CalculateModel


Unit: SDL_statis
Class: TMLRModel
Declaration: function CalculateModel: integer;

The method CalculateModel computes the regression model using the data in the matrices XData and YData. The results of the calculation are returned in the following properties: RegCoeffs, FStat, FitR2

The function returns the following error numbers:

 0 ... everything is OK
-1 ... number of objects in XData any YData block is not equal
-2 ... error during calculation, coefficients are invalid
-3 ... matrix is near singular, do not trust the coefficients (warning only)
-4 ... the target variable is not dichotomous (ModelType = rmLDA only)
-5 ... the target variable is constant (ModelType = rmLDA only)



Last Update: 2023-Dec-05