- class statsmodels.stats.contingency_tables.Table(table, shift_zeros=True)¶
A two-way contingency table.
The inference procedures used here are all based on a sampling model in which the units are independent and identically distributed, with each unit being classified with respect to two categorical variables.
- Definitions of residuals:
The original table is cached as table_orig.
Construct a Table object from data.
Assess independence for nominal factors.
Assess independence between two ordinal variables.
Returns the contributions to the chi^2 statistic for independence.
Returns cumulative log odds ratios.
Returns the cumulative odds ratios for a contingency table.
Returns fitted cell counts under independence.
Returns fitted joint probabilities under independence.
Returns local log odds ratios.
Returns local odds ratios.
Estimate marginal probability distributions for the rows and columns.
Returns Pearson residuals.
Returns standardized residuals under independence.