McNemarTest Constructor

Constructs a new McNemarTest.

Definition

Namespace: Numerics.NET.Statistics.Tests
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
public McNemarTest(
	ICategoricalVector sample1,
	ICategoricalVector sample2,
	bool continuityCorrection = false
)

Parameters

sample1  ICategoricalVector
A CategoricalVector<T> that represents the first sample.
sample2  ICategoricalVector
A CategoricalVector<T> that represents the second sample.
continuityCorrection  Boolean  (Optional)
Specifies whether a continuity correction should be applied.

Remarks

Both samples must be categorical variables with only two levels, and they must have the same length.

Exceptions

ArgumentNullException

sample1 is null.

-or-

sample2 is null.

ArgumentException

sample1 does not have exactly two levels.

-or-

sample2 does not have exactly two levels.

DimensionMismatchException

sample1 and sample2 do not have the same number of observations.

See Also