Table2x2.from_data()

statsmodels.stats.contingency_tables.Table2x2.from_data

classmethod Table2x2.from_data(data, shift_zeros=True) [source]

Construct a Table object from data.

Parameters:

data : array-like

The raw data, the first column defines the rows and the second column defines the columns.

shift_zeros : boolean

If True, and if there are any zeros in the contingency table, add 0.5 to all four cells of the table.

© 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.Table2x2.from_data.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部