IMsBinaryRegressionTransform.UpperConfidenceLevelTermSet

Syntax

UpperConfidenceLevelTermSet: IMsFormulaTermSet;

Description

The UpperConfidenceLevelTermSet property returns a set of series, to which upper confidence limit data is loaded on problem calculation.

Comments

The size of the UpperConfidenceLevelTermSet set must be equal to the size of the explained variable set (IMsBinaryRegressionTransform.Explained).

Example

Executing the example requires that the repository contains a modeling container with the CONT_MODEL identifier. The container contains a model with the BINREG identifier that uses the binary regression method for calculation. The size of model explanatory variable set is equal to one. This container also contains the UPPER_CONF_LEVEL variable.

Add links to the Metabase, Ms, Stat system assemblies.

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;
    // Determine a variable for loading upper confidence limit data
    Var_out := MB.ItemByIdNamespace("UPPER_CONF_LEVEL",SpaceDescr.Key).Bind As IMsVariable;
    pF_out := Trans.Outputs.Add(Var_out As IVariableStub);
    Binary.UpperConfidenceLevelTermSet.Clear;
    Binary.UpperConfidenceLevelTermSet.Add(pF_out.Slices.Add(Null));
    MObj.Save;
End Sub Main;

After executing the example, upper confidence limit data is loaded to the UPPER_CONF_LEVEL variable after problem calculation.

See also:

IMsBinaryRegressionTransform