statsmodels.stats.contingency_tables.SquareTable.cumulative_log_oddsratios

method

SquareTable.cumulative_log_oddsratios()

Returns cumulative log odds ratios.

The cumulative log odds ratios for a contingency table with ordered rows and columns are calculated by collapsing all cells to the left/right and above/below a given point, to obtain a 2x2 table from which a log odds ratio can be calculated.