IMsMethod.Summary

Syntax

Summary(Coord: IMsFormulaTransformCoord): ISummaryStatistics;

Parameters

Coord. Variable slice for which information should be obtained.

Description

The Summary property returns summary statistics calculated for model.

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;

Model: IMsModel;

VarTrans: IMsFormulaTransformVariable;

Tree: IMsFormulaTransformSlicesTree;

Slice: IMsFormulaTransformSlice;

Selector: IMsFormulaTransformSelector;

Formula: IMsFormula;

Coo: IMsFormulaTransformCoord;

LinReg: IMsLinearRegressionTransform;

d: Double;

Begin

MB := MetabaseClass.Active;

Model := MB.ItemByIdNamespace("MODEL_LINREG", MB.ItemById("MODEL_SPACE").Key).Bind 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);

Coo := Model.Transform.CreateCoord(VarTrans);

LinReg := Formula.Method As IMsLinearRegressionTransform;

d := LinReg.Summary(Coo).DW;

End Sub Main;

After executing the example the d variable will contain the value of Durbin-Watson statistics that is calculated for the Model_1 model.

See also:

IMsMethod