def __init__(self):
        from .results.results_regression import CCardWLS
        from statsmodels.datasets.ccard import load
        dta = load()

        dta.exog = add_constant(dta.exog, prepend=False)
        nobs = 72.

        weights = dta.exog[:,2]/1
        # for comparison with stata analytic weights
        scaled_weights = ((weights * nobs)/weights.sum())

        self.res1 = WLS(dta.endog, dta.exog, weights=scaled_weights).fit()
        self.res2 = CCardWLS()
        self.res2.wresid = scaled_weights ** .5 * self.res2.resid

        # correction because we use different definition for loglike/llf
        corr_ic = 2 * (self.res1.llf - self.res2.llf)
        self.res2.aic -= corr_ic
        self.res2.bic -= corr_ic
        self.res2.llf += 0.5 * np.sum(np.log(self.res1.model.weights))
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/regression/tests/test_regression.py/TestWLSExogWeights.__init__/swapped operands of `/`