ITsCompositeFormulaTerm.Included

Syntax

Included: Boolean;

Description

The Included property determines whether the composite element is used to calculate expression.

Comments

Available values:

Example

Executing the example requires a form with the following components:

A workbook of time series database must be loaded to UiErAnalyzer. Add links to the Transform and Ms system assemblies.

Before executing the example the workbook must contain only one selected series calculated by the linear regression method.

Sub UserProc;
Var
    Results: ILanerResultsBoxResults;
    Coefficients: ILanerResultsBoxCoefficients;
    i: Integer;
    FactorTerm: ITsCompositeFormulaTerm;
    LSerie: ILanerSerie;
Begin
    Results := LanerResultsBox1.Results;
    Coefficients := Results.Coefficients;
    For i := 0 To Coefficients.TermCount - 1 Do
        FactorTerm := Coefficients.FactorTerm(i);
        If FactorTerm.Included Then
            (FactorTerm As IMsCompositeFormulaTerm).ChangeLag(2);
        End If;
    End For;
    LSerie := LanerBox1.SelectedSeries(0);
    (LSerie As ILanerCalculateSerie).RefreshData;
End Sub UserProc;

After executing the example the lag is changed for linear regression factors used in calculation. Linear regression is recalculated.

See also:

ITsCompositeFormulaTerm