stats.contingency_tables.SquareTable()

statsmodels.stats.contingency_tables.SquareTable

class statsmodels.stats.contingency_tables.SquareTable(table, shift_zeros=True) [source]

Methods for analyzing a square contingency table.

Parameters:

table : array-like

A square contingency table, or DataFrame that is converted to a square form.

shift_zeros : boolean

If True and any cell count