IMsMethod.Inversion

Syntax

Inversion: MsInversion;

Description

The Inversion property determines the method of initial transformation, that is used for the output variable.

Comments

The property is outdated, use InversionInfo.Inversion.

Example

Executing the example requires that the repository contains a modeling container with the MODEL_SPACE identifier. The container includes a model with the MODEL_LINREG identifier. The model uses the method of linear regression (OLS estimation) for calculation.

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Model: IMsModel;

VarTrans: IMsFormulaTransformVariable;

Transf: IMsFormulaTransform;

Tree: IMsFormulaTransformSlicesTree;

Slice: IMsFormulaTransformSlice;

Selector: IMsFormulaTransformSelector;

LinReg: IMsLinearRegressionTransform;

Formula: IMsFormula;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemByIdNamespace("MODEL_LINREG", MB.ItemById("MODEL_SPACE").Key).Edit;

Model := MObj As IMsModel;

VarTrans := Model.Transform.Outputs.Item(0);

Tree := VarTrans.SlicesTree(VarTrans);

Slice := Tree.CreateSlice(1);

Selector := Model.Transform.CreateSelector;

Selector.Slice := Slice;

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

LinReg := Formula.Method As IMsLinearRegressionTransform;

LinReg.Inversion := MsInversion.DLog;

LinReg.InversionLag := MsInversionLag.PrecidingYear;

MObj.Save;

End Sub Main;

After executing the example the way of transformation of output variable, that is, a difference of logarithms, the transformation period, that is, the appropriate period of the last year, is set for the model.

See also:

IMsMethod|MsInversion|IMsMethod.InversionLag