ILanerResultsBoxResults.Coefficients

Syntax

Coefficients: ILanerResultsBoxCoefficients;

Description

The Coefficients property returns parameters required to work with values of the Coefficients tab.

Comments

Values of the Coefficients parameter are computed for series calculated using modeling methods (smoothing, forecast or regression).

Example

Executing the example requires a form, a button with the Button1 identifier on the form, the LanerBox component, the LanerResultsBox component named LanerResultsBox1 and the UiErAnalyzer component used as a data source for LanerBox and LanerResultsBox. A workbook of the time series database must be loaded to UiErAnalyzer1.

The example is executed on clicking the button.

    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Var
        Results: ILanerResultsBoxResults;
        Coefficients: ILanerResultsBoxCoefficients;
        i, j: Integer;
        s: string;
    Begin
        Results := LanerResultsBox1.Results;
        Coefficients := Results.Coefficients;
        If Coefficients.TermCount > 0 Then
            Debug.WriteLine("Equation:   " + Coefficients.Equation);
            For i := 0 To Coefficients.ColumnCount - 1 Do
                s := s + "    " + Coefficients.ColumnName(i);
            End For;
            Debug.WriteLine(s);
            For i := 0 To Coefficients.TermCount - 1 Do
                s := "";
                For j := 0 To Coefficients.ColumnCount - 1 Do
                    s := s + "    " + Coefficients.Value(i, j);
                End For;
                Debug.WriteLine(s);
            End For;
        Else
            Debug.WriteLine("Coefficients have not been calculated");
        End If;
    End Sub Button1OnClick;

After executing the example the console window displays values located on the Coefficients tab of the Calculation Results panel. For example:

Equation:   Y = 55 382,95/t -883,72
    Coefficient    Value    Standard error    t-statistics    Probability
    A1    55382.948531310874    16166.599801141016    3.4257635626881804    0.0064843977258993921
    (constant) - 883.72143942968978 5838.2406712916127 - 0.15136776456907886 0.88269567999419207

See also:

ILanerResultsBoxResults