IVarianceAnalysisDegreeOfFreedom.Accuracy

Syntax

Accuracy: Integer;

Description

The Accuracy property returns the number of accuracy degrees of freedom.

Example

To execute the example, add a link to the Stat system assembly.

Sub UserProc;
Var
    VA: SmVarianceAnalysis;
    res: Integer;
    m: Array Of Double;
    DF: IVarianceAnalysisDegreeOfFreedom;
Begin
    VA := New SmVarianceAnalysis.Create;
    m := New Double[53];
    m[00] := 1; m[01] := 4; m[02] := 1;
    m[10] := 2; m[11] := 3; m[12] := 2;
    m[20] := 3; m[21] := 3; m[22] := 1;
    m[30] := 4; m[31] := 1; m[32] := 2;
    m[40] := 5; m[41] := 1; m[42] := 1;
    VA.Data := m;
    VA.AnalysisType := VarianceAnalysisType.TwoFactor; // two-factor analysis
    VA.ConfidenceLevel := 0.05;
    res := VA.Execute;
    If res <> 0 Then
        Debug.WriteLine(VA.Errors);
    Else
        Debug.WriteLine("Number of degrees of freedom");
        DF := VA.DegreeOfFreedom;
        Debug.WriteLine("rows : " + DF.Rows.ToString);
        Debug.WriteLine("columns : " + DF.Columns.ToString);
        Debug.WriteLine("accuracy : " + DF.Accuracy.ToString);
        Debug.WriteLine("total: " + DF.Total.ToString);
    End If;
End Sub UserProc;

Executing the example displays the results of the variance analysis in the console window:

Unit execution started

Number of degrees of freedom

rows : 4

columns : 2

accuracy : 8

Total: 14

Unit execution finished

See also:

IVarianceAnalysisDegreeOfFreedom