IMsBinaryRegressionTransform.LowerConfidenceLevelTermSet

Syntax

LowerConfidenceLevelTermSet: IMsFormulaTermSet;

Description

The property is read-only.

The LowerConfidenceLevelTermSet property returns a set of series, to which lower confidence limit data is unloaded on problem calculation.

NOTE. The size of the LowerConfidenceLevelTermSet set must be equal to the size of the explanatory variable set (IMsBinaryRegressionTransform.Explained).

Example

Executing the example requires that the modeling container (CONT_MODEL) contains a model (BinReg) that uses binary regression method for calculation. The size of model explanatory variable set is equal to one. This container must also include the LOWER_CONF_LEVEL variable.

Sub Main;

Var

MB: IMetabase;

SpaceDescr: IMetabaseObjectDescriptor;

MObj: IMetabaseObject;

Model: IMsModel;

Trans: IMsFormulaTransform;

VarTrans: IMsFormulaTransformVariable;

Tree: IMsFormulaTransformSlicesTree;

Slice: IMsFormulaTransformSlice;

Selector: IMsFormulaTransformSelector;

Formula: IMsFormula;

Binary: IMsBinaryRegressionTransform;

Var_out: IMsVariable;

pF_out: IMsFormulaTransformVariable;

Begin

MB := MetabaseClass.Active;

SpaceDescr := mb.ItemById("CONT_MODEL");

MObj := MB.ItemByIdNamespace("BinReg", SpaceDescr.Key).Edit;

Model := MObj As IMsModel;

Trans := Model.Transform;

VarTrans := Trans.Outputs.Item(0);

Tree := VarTrans.SlicesTree(VarTrans);

Slice := Tree.CreateSlice(1);

Selector := Model.Transform.CreateSelector;

Selector.Slice := Slice;

Formula := Model.Transform.Transform(Selector);

Binary := Formula.Method As IMsBinaryRegressionTransform;

// Variable indication for input confidence limit data loading

Var_out := mb.ItemByIdNamespace("LOWER_CONF_LEVEL", SpaceDescr.Key).Bind As IMsVariable;

pF_out := Trans.Outputs.Add(Var_out As IVariableStub);

Binary.LowerConfidenceLevelTermSet.Clear;

Binary.LowerConfidenceLevelTermSet.Add(pF_out.Slices.Add(Null));

MObj.Save;

End Sub Main;

Example execution result: the data of lower confidence limit is unloaded to the LOWER_CONF_LEVEL variable on problem calculation.

See also:

IMsBinaryRegressionTransform