Included: Boolean;
The Included property determines whether the composite element is used to calculate expression.
Available values:
True. The element is used to calculate expression.
False. The element is not used to calculate expression.
Executing the example requires a form with the following components:
LanerBox with the LanerBox1 identifier.
LanerResultsBox with the LanerResultsBox1 identifier.
UiErAnalyzer, which is a data source for LanerBox and LanerResultsBox.
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: