

@classmethod
def setupClass(cls):
    data = sm.datasets.anes96.load()
    cls.data = data
    exog = data.exog
    exog = sm.add_constant(data, prepend=False)
    mymodel = MNLogit(data.endog, exog)
    cls.res1 = mymodel.fit(method='lbfgs', disp=0, maxiter=50000, m=40, pgtol=1e-10, factr=5.0, loglike_and_score=mymodel.loglike_and_score)
    res2 = Anes()
    res2.mnlogit_basezero()
    cls.res2 = res2

dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/discrete/tests/test_discrete.py TestMNLogitLBFGSBaseZero.setupClass/VarMisuse@43/50 `exog`->`data`