

def test_t_test(self):
    m = self.m
    kvars = self.kvars
    t_unreg = self.res_unreg.t_test(np.eye(m))
    t_reg = self.res_reg.t_test(np.eye(kvars))
    assert_almost_equal(t_unreg.effect, t_reg.effect[:m], DECIMAL_3)
    assert_almost_equal(t_unreg.sd, t_reg.sd[:m], DECIMAL_3)
    assert_almost_equal(np.nan, t_reg.sd[m])
    assert_almost_equal(t_unreg.tvalue, t_reg.tvalue[:m, :m], DECIMAL_3)

dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/discrete/tests/test_discrete.py TestMNLogitL1Compatability.test_t_test/original