TMtxStepwiseReg Class

Header: Dew.Stats/StatTools.h · Cross-compiler
tObjectTMtxComponentTMtxStepwiseReg

class TMtxStepwiseReg : public TMtxComponent;

Stepwise regression is an optimization aglorithm aiming to improve the quality of the multiple linear regression by excluding noisy variables.

For models with less than 15 variables, the exhaustive search is the recommended method. Alternatively it is possible to perform "backward search" by starting with all and removing one by one or "forward search" by starting with none and adding one by one variable. Both backward and forward search can have selected variables already pre-included (or pre-excluded). Single step mode allows the user to manually include or exclude individual variables from the model after each step.

Constructors

NameDescription
TMtxStepwiseReg (2)

Destructors

NameDescription
~TMtxStepwiseReg

Properties

NameTypeDescription
ATVecList*Holds a list of vectors with data of variables
AutoInitBitMaskboolSet this property to false, if you want to manually initialize the BitMask.
BitMaskTVecInt*Bit vector holding 1 for included and 0 for excluded vars.
BlockAssignboolBlock streaming of specific properties when storing only a "template".
EditorActiveboolReturns True, if the component editor is displayed.
MaxIterintMaximum iteration count before an exception will be raised.
MethodTStepwiseMethodDefines stepwise regression model.
NameDewString
OnQualityCriteriaTOnStepwiseQualityCriteriaImplement this event, to return custom quality criteria other than Std. Error to guide the optimization.
ReferenceTReferenceList*Stores a list of components that have to be notified, when this component is destroyed.
reportCoeffTMtx*Result matrix with size of (IterCount*VarCount) x 5.
reportSSETMtx*Result matrix size of IterCount x (VarCount + 7).

Methods

NameDescription
AllowStreamingReturns the negatated value of BlockAssign.
AssignAssign values of all published properties from Source.
AssignTemplateAssign values of "template-like" published properties from Source.
EditorClassTo be overriden in descendanr classses.
LoadFromStreamLoad the component from Src stream.
LoadTemplateFromFileLoad a template from file.
LoadTemplateFromStreamLoad a template from stream.
RecalcTriggers stepwise regression recalculation.
ReferenceRemoved
ResetReset is called after loading the data from stream or file.
SaveTemplateToFileSave template to file.
SaveTemplateToStreamSave template to stream.
SaveToStreamSave the component to Dst stream.

Fields

NameTypeDescription
Tagintptr_t