'Tests Poisson family with canonical log link.'

@classmethod
def setup_class(cls):

    super(TestWtdGlmPoissonClu, cls).setup_class()
    start_params = np.array([0.000182794424, (-0.0476785037), (-0.0948249717), (-0.000292293226), 2.63728909, (-20.5934384)])
    gid = (np.arange(1, (len(cls.endog) + 1)) // 2)
    fit_kwds = dict(cov_type='cluster', cov_kwds={'groups': gid, 'use_correction': False})
    import warnings
    with warnings.catch_warnings():
        warnings.simplefilter('ignore')
        cls.res1 = GLM(cls.endog, cls.exog, freq_weights=cls.weight, family=sm.families.Poisson()).fit(**fit_kwds)
        gidr = np.repeat(gid, cls.weight)
        fit_kwds = dict(cov_type='cluster', cov_kwds={'groups': gidr, 'use_correction': False})
        cls.res2 = GLM(cls.endog_big, cls.exog_big, family=sm.families.Poisson()).fit(start_params=start_params, **fit_kwds)
