TMtxLogistReg Class

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

class TMtxLogistReg : public TMtxComponent;

Performs logistic regression.

Use TMtxLogistReg component to perform ordinary or ordinal logistic regression on dataset.Suppose y takes values in k ordered categories, and let p_ij be the cumulative probability that y(i) falls in the j'th category or higher. The ordinal logistic regression model is defined as:

logit(p_ij) = theta(j) + A_i'B , i = 1,..,length(Y), j = 1,..,k-1,

where A_i is the i'th row of A . The number of ordinal categories k is taken to be the number of distinct values of int(y). If k is 2 (two categories) the model is ordinary logistic regression.

How to use TMtxLogistReg component?

Results:

Constructors

NameDescription
TMtxLogistReg (2)

Destructors

NameDescription
~TMtxLogistReg

Properties

NameTypeDescription
ATMtx*Independent variables.
AlphadoubleDesired significant value for the statistical tests.
AutoInitEstimatesboolAutomatically calculate initial estimates for regression coefficients.
AutoUpdateboolIf true then changing any of the TMtxLogistReg properties will trigger the TMtxLogistReg::Recalc method.
BTVec*B coefficients estimates.
BlockAssignboolBlock streaming of specific properties when storing only a "template".
DirtyboolWhen any of the TMtxLogistReg properties changes, this property is automatically set to true.
EditorActiveboolReturns True, if the component editor is displayed.
MaxIterationintDefines one of the conditions for terminating the regression coefficient calculation.
NameDewString
ReferenceTReferenceList*Stores a list of components that have to be notified, when this component is destroyed.
TBStdErrTVec*Standard errors of Theta, B estimates.
ThetaTVec*Theta coefficients estimates.
TolerancedoubleDefines one of the conditions for terminating the regression coefficient calculation.
YTVec*Grouping variable.

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 logistic 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
FMindouble
Iterationsint
StopReasonTOptStopReason
Tagintptr_t