OneWayAnovaModel.GetTukeyTest Method

Returns Tukey's HSD test for the pairwise comparison of two group means.

Definition

Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public AnovaPostHocTest GetTukeyTest(
	int index1,
	int index2
)

Parameters

index1  Int32
The index of the first group.
index2  Int32
The index of the second group.

Return Value

AnovaPostHocTest
An AnovaPostHocTest object that represents Tukey's HSD for the specified groups.

Remarks

In principle, Tukey's test is only valid for equal group sample sizes. If the samples sizes are not equal, their harmonic mean is used.

Exceptions

InvalidOperationException

The Fit() method has not been called.

ArgumentOutOfRangeException

index1 is less than zero or greater than or equal to the number of groups.

-or-

index2 is less than zero or greater than or equal to the number of groups.

See Also