Example #1
0
 def test_t_stat(self):
     obs = diagnostics_tsls.t_stat(reg)
     exp = [(5.8452644704588588, 4.9369075950019865e-07),
            (0.36760156683572748, 0.71485634049075841),
            (-1.9946891307832111, 0.052021795864651159)]
     for i in range(3):
         for j in range(2):
             self.assertAlmostEquals(obs[i][j], exp[i][j])
Example #2
0
 def test_t_stat(self):
     obs = diagnostics_tsls.t_stat(reg)
     exp = [(5.8452644704588588, 4.9369075950019865e-07),
            (0.36760156683572748, 0.71485634049075841),
            (-1.9946891307832111, 0.052021795864651159)]
     for i in range(3):
         for j in range(2):
             self.assertAlmostEquals(obs[i][j],exp[i][j])
Example #3
0
 def test_t_stat(self):
     obs = diagnostics_tsls.t_stat(reg)
     exp = [(5.8452644704588588, 4.9369075950019865e-07),
            (0.36760156683572748, 0.71485634049075841),
            (-1.9946891307832111, 0.052021795864651159)]
     np.testing.assert_allclose(obs, exp, RTOL)