Mc Nemar Test Constructor
Constructs a new McNemarTest.
Definition
Namespace: Extreme.Statistics.Tests
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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. |
Dimension | sample1 and sample2 do not have the same number of observations. |