Mc Nemar Test Constructor
Constructs a new McNemarTest.
Definition
Namespace: Numerics.NET.Statistics.Tests
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
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
Argument | sample1 is null. -or- sample2 is null. |
Argument | sample1 does not have exactly two levels. -or- sample2 does not have exactly two levels. |
Dimension | sample1 and sample2 do not have the same number of observations. |