

def test_f_test(self):
    m = self.m
    kvars = self.kvars
    extra = getattr(self, 'k_extra', 0)
    f_unreg = self.res_unreg.f_test(np.eye(len(self.res_unreg.params))[:m])
    f_reg = self.res_reg.f_test(np.eye((kvars + extra))[:m])
    assert_allclose(f_unreg.fvalue, f_reg.fvalue, rtol=3e-05, atol=0.001)
    assert_almost_equal(f_unreg.pvalue, f_reg.pvalue, DECIMAL_3)

dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/discrete/tests/test_discrete.py CheckL1Compatability.test_f_test/original