Esempio n. 1
0
 def test_Robustdegenerate(self):
     X = W((40,10))
     X[:,0] = X[:,1] + X[:,2]
     Y = W((40,))
     model = models(design=X)
     results = model.fit(Y)
     self.assertEquals(results.df_resid, 31)
Esempio n. 2
0
 def check_Logistic(self):
     X = W((40,10))
     Y = N.greater(W((40,)), 0)
     family = S.family.Binomial()
     cmodel = models(design=X, family=S.family.Binomial())
     results = cmodel.fit(Y)
     self.assertEquals(results.df_resid, 30)
Esempio n. 3
0
 def check_Logisticdegenerate(self):
     X = W((40,10))
     X[:,0] = X[:,1] + X[:,2]
     Y = N.greater(W((40,)), 0)
     family = S.family.Binomial()
     cmodel = models(design=X, family=S.family.Binomial())
     results = cmodel.fit(Y)
     self.assertEquals(results.df_resid, 31)
Esempio n. 4
0
 def test_Robust(self):
     X = W((40,10))
     Y = W((40,))
     model = models(design=X)
     results = model.fit(Y)
     self.assertEquals(results.df_resid, 30)