IMsCompositeFormulaTerm.InversedExpressionText

Syntax

InversedExpressionText: String;

Description

The InversedExpressionText property returns text of the formula, based on which composite term value will be calculated, taking into account term transformations.

Example

Executing the example requires that the repository contains a modeling container with the MODEL_SPACE identifier. This container must contain a model with the MODEL identifier that is calculated by the method of linear regression (OLS estimation).

Sub Main;

Var

mb: IMetabase;

ms: IMetabaseObjectDescriptor;

model: IMsModel;

fTransform: IMsFormulaTransform;

lin: IMsLinearRegressionTransform;

cfTerm: IMsCompositeFormulaTerm;

Begin

mb := MetabaseClass.Active;

ms := mb.ItemById("MODEL_SPACE");

model := mb.ItemByIdNamespace("MODEL", ms.Key).Bind As IMsModel;

fTransform := model.Transform;

lin := fTransform.FormulaItem(0).Method As IMsLinearRegressionTransform;

cfTerm := lin.Explanatories.Item(0);

Debug.WriteLine(cfTerm.InversedExpressionText);

End Sub Main;

After executing the example, text of formula, by which value of the first term of the model is calculated taking into account transformations, is displayed in the console window.

See also:

IMsCompositeFormulaTerm