

@classmethod
def setupClass(cls):
    data = sm.datasets.randhie.load()
    exog = sm.add_constant(data.exog, prepend=False)
    cls.res1 = NegativeBinomial(data.endog, exog, 'nb1').fit(method='bfgs', maxiter=100, disp=0)
    res2 = RandHIE()
    res2.negativebinomial_nb1_bfgs()
    cls.res2 = res2

dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/discrete/tests/test_discrete.py TestNegativeBinomialNB1BFGS.setupClass/original