def __init__(self): data = heart.load() endog = np.log10(data.endog) exog = add_constant(data.exog) self.mod1 = emplikeAFT(endog, exog, data.censors) self.res1 = self.mod1.fit() self.res2 = AFTRes()
def setup_class(cls): data = heart.load() endog = np.log10(data.endog) exog = add_constant(data.exog) cls.mod1 = emplikeAFT(endog, exog, data.censors) cls.res1 = cls.mod1.fit() cls.res2 = AFTRes()
def setup_class(cls): data = heart.load(as_pandas=False) endog = np.log10(data.endog) exog = add_constant(data.exog) cls.mod1 = emplikeAFT(endog, exog, data.censors) cls.res1 = cls.mod1.fit() cls.res2 = AFTRes()