

@classmethod
def setupClass(cls):
    data = sm.datasets.anes96.load()
    cls.data = data
    exog = data.exog
    exog = sm.add_constant(exog, prepend=False)
    cls.res1 = MNLogit(data.endog, exog).fit(method='newton', disp=0)
    res2 = Anes()
    res2.mnlogit_basezero()
    res2.res2 = res2

dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/discrete/tests/test_discrete.py TestMNLogitNewtonBaseZero.setupClass/VarMisuse@86/107 `cls`->`res2`