Table.from_data()

statsmodels.stats.contingency_tables.Table.from_data

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

Construct a Table object from data.

Parameters:

data : array-like

The raw data, from which a contingency table is constructed using the first two columns.

shift_zeros : boolean

If True and any cell count is zero, add 0.5 to all values in the table.

Returns:

A Table instance.

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部