'Test that all odds ratios are identical.
This is the \'Breslow-Day\' testing procedure.
Parameters
adjust : boolean
Use the \'Tarone\' adjustment to achieve the chi^2
asymptotic distribution.
Returns
A bunch containing the following attributes:
statistic : float
The chi^2 test statistic.
p-value : float
The p-value for the test.'

def test_equal_odds(self, adjust=False):

    table = self.table
    r = self.oddsratio_pooled
    a = (1 - r)
    b = ((r * (self._apb + self._apc)) + self._dma)
    c = (((- r) * self._apb) * self._apc)
    e11 = (((- b) + np.sqrt(((b ** 2) - ((4 * a) * c)))) / (2 * a))
    v11 = ((((1 / e11) + (1 / (self._apc - e11))) + (1 / (self._apb - e11))) + (1 / (self._dma + e11)))
    v11 = (1 / v11)
    statistic = np.sum((((table[0, 0, :] - e11) ** 2) / v11))
    if adjust:
        adj = (table[0, 0, :].sum() - e11.sum())
        adj = (adj ** 2)
        adj /= np.sum(v11)
        statistic -= adj
    pvalue = (1 - stats.chi2.cdf(statistic, (table.shape[2] - 1)))
    b = _Bunch()
    b.statistic = statistic
    b.pvalue = pvalue
    return b
