BinaryContingencyTableMcNemarTest Method |

Performs a McNemar test.

**Namespace:**
Meta.Numerics.Statistics
**Assembly:**
Meta.Numerics (in Meta.Numerics.dll) Version: 3.1.0.0 (3.1.0.0)

Syntax public TestResult McNemarTest()

Public Function McNemarTest As TestResult

public:
TestResult^ McNemarTest()

member McNemarTest : unit -> TestResult

#### Return Value

Type:

TestResultThe result of the test.

Remarks McNemar's test is appropriate to a rather specialized circumstance, so if you aren't sure this is the
right test, it probably isn't.

The circumstance to which McNemar's test applies is paired binary measurements. Each member of
a set is measured twice, once before and once after some treatment, and each measurement has a binary
outcome. McNemar's test can be used to determine whether the treatment had any systematic effect. The null
hypothesis is that it the not, i.e. that any discrepancies between the first and second measurements
were random.

See Also