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)
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)
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)
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)