Esempio n. 1
0
 def testOLSdegenerate(self):
     X = W((40,10))
     X[:,0] = X[:,1] + X[:,2]
     Y = W((40,))
     model = ols_model(design=X)
     results = model.fit(Y)
     self.assertEquals(results.df_resid, 31)
Esempio n. 2
0
 def testOLS(self):
     X = W((40,10))
     Y = W((40,))
     model = ols_model(design=X)
     results = model.fit(Y)
     self.assertEquals(results.df_resid, 30)