StratifiedTable.test_null_odds()

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:

correction : boolean

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

Returns:

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

© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.stats.contingency_tables.StratifiedTable.test_null_odds.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部