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