statsmodels.stats.contingency_tables.StratifiedTable.test_null_odds

StratifiedTable.test_null_odds(correction=False)[source]

Test that all tables have odds ratio equal to 1.

This is the ‘Mantel-Haenszel’ test.

Parameters
correctionbool

If True, use the continuity correction when calculating the test statistic.

Returns
A bunch containing the chi^2 test statistic and p-value.