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 this example requires a form, a button with the identifier Button1 positioned on this form, the LanerBox component, the LanerResultsBox component named LanerResultsBox1 and the UiErAnalyzer component used as a data source for LanerBox and LanerResultsBox. Workbook of the time series database must be loaded to UiErAnalyzer1.

This 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 this example the console window shows values displayed 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