TMtxStepwiseReg Class

Source: StatTools.cs · Assembly: Dew.Stats
ComponentTMtxComponentTMtxStepwiseReg

public class TMtxStepwiseReg : 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.

Properties

NameTypeDescription
ATVecListHolds a list of vectors with data of variables
AutoInitBitMaskBooleanSet this property to false, if you want to manually initialize the BitMask.
BitMaskTVecIntBit vector holding 1 for included and 0 for excluded vars.
BlockAssignBooleanBlock streaming of specific properties when storing only a "template".
EditorActiveBooleanReturns True, if the component editor is displayed.
MaxIterInt32Maximum iteration count before an exception will be raised.
MethodTStepwiseMethodDefines stepwise regression model.
OnQualityCriteriaTOnStepwiseQualityCriteriaImplement this event, to return custom quality criteria other than Std. Error to guide the optimization.
ReferenceTReferenceListStores a list of components that have to be notified, when this component is destroyed.
reportCoeffTMtxResult matrix with size of (IterCount*VarCount) x 5.
reportSSETMtxResult 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.
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.

Events

NameDescription
OnQualityCriteriaEventImplement this event, to return custom quality criteria other than Std. Error to guide the optimization.