'Tests Tweedie family with Power(1) link and var_power=2.'

@classmethod
def setup_class(cls):

    from statsmodels.datasets.cpunish import load_pandas
    cls.data = load_pandas()
    cls.endog = cls.data.endog
    cls.exog = cls.data.exog[['INCOME', 'SOUTH']]
    np.random.seed(1234)
    cls.weight = np.random.randint(5, 100, len(cls.endog))
    cls.endog_big = np.repeat(cls.endog.values, cls.weight)
    cls.exog_big = np.repeat(cls.exog.values, cls.weight, axis=0)
    link = sm.families.links.Power
    family_link = sm.families.Tweedie(link=link, var_power=2)
    cls.res1 = GLM(cls.endog, cls.exog, freq_weights=cls.weight, family=family_link).fit()
    cls.res2 = GLM(cls.endog_big, cls.exog_big, family=family_link).fit()
