Regress::RegressTest Function

Overload List

#SignatureDescription
1void RegressTest(TVec *Y, TVec *YCalc, int NumPars, TRegStats &RegStat, bool Constant = true, TVec *Weights = null);Regression tests.
2void RegressTest(TVec *Y, TVec *YCalc, TMtx *ATA, TRegStats &RegStat, TVec *Residuals, TVec *BStdDev, bool Constant = true, TVec *Weights = null);Regression tests.

Overload 1: void RegressTest(TVec *Y, TVec *YCalc, int NumPars, TRegStats &RegStat, bool Constant = true, TVec *Weights = null);

Regression tests.

#NameTypeDescription
1YTVec *Dependant variables.
2YCalcTVec *Estimated (calculated) dependant variables.
3NumParsintNumber of variables (parameters) in ML model A*b=y (number of columns in A matrix or number of rows in b).
4RegStatTRegStats &Returns regression statistics parameters.
5Constant = trueboolIf true then include intercept term b(0) in calculations. If false, set intercept term b(0) to 0.0.
6Weights = nullTVec *Model weights (optional).
Remarks:

Use regression results to calculate basic regression statistics for model:

A*b=Y

See Also: Regress::R2, Regress::PRESS
Declared in Dew::Stats::Units::Regress · Dew.Stats/Units.Regress.h · Cross-compiler

Overload 2: void RegressTest(TVec *Y, TVec *YCalc, TMtx *ATA, TRegStats &RegStat, TVec *Residuals, TVec *BStdDev, bool Constant = true, TVec *Weights = null);

Regression tests.

#NameTypeDescription
1YTVec *Dependant variables.
2YCalcTVec *Estimated (calculated) dependant variables.
3ATATMtx *Inverse matrix of normal equations i.e [A(T)*A]^-1.
4RegStatTRegStats &Returns regression statistics parameters.
5ResidualsTVec *Returns residual errors.
6BStdDevTVec *Returns standard deviation.
7Constant = trueboolIf true then include intercept term b(0) in calculations. If false, set intercept term b(0) to 0.0.
8Weights = nullTVec *Model weights (optional).
Remarks:

Using regression results the routine calculates additional regression statistical parameters, together with model coefficients standard errors and model errors.

See Also: Regress::R2, Regress::PRESS
Declared in Dew::Stats::Units::Regress · Dew.Stats/Units.Regress.h · Cross-compiler