56d1ce1c8a9e498a419cc25033b6dac4a6f3c673,panel/iv/model.py,IVLIML,fit,#IVLIML#Any#,223

Before Change



        cov_estimator = COVARIANCE_ESTIMATORS[cov_type]
        cov_estimator = cov_estimator(x, y, z, params, **cov_config)
        cov = cov_estimator.cov
        s2, debiased = cov_estimator.s2, cov_estimator.debiased
        cov_config = cov_estimator.config

        eps = self.resids(params)
        mu = self.endog.mean() if self.has_constant else 0
        residual_ss = (eps.T @ eps)
        model_ss = ((y - mu).T @ (y - mu))
        r2 = 1 - residual_ss / model_ss
        fstat = self._f_statistic(params, cov, cov_config)

        return IVResults(params, cov, r2, cov_type, residual_ss, model_ss,
                         s2, debiased, fstat, self, kappa=kappa)

After Change


        cov_estimator = cov_estimator(x, y, z, params, **cov_config)

        pe = self._post_estimation(params, cov_estimator)
        eps, cov, s2, debiased, residual_ss, model_ss, r2, fstat = pe

        return IVResults(params, cov, r2, cov_type, residual_ss, model_ss,
                         s2, debiased, fstat, self, kappa=kappa)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 27

Instances


Project Name: bashtage/linearmodels
Commit Name: 56d1ce1c8a9e498a419cc25033b6dac4a6f3c673
Time: 2017-02-23
Author: kevin.k.sheppard@gmail.com
File Name: panel/iv/model.py
Class Name: IVLIML
Method Name: fit


Project Name: bashtage/linearmodels
Commit Name: 56d1ce1c8a9e498a419cc25033b6dac4a6f3c673
Time: 2017-02-23
Author: kevin.k.sheppard@gmail.com
File Name: panel/iv/model.py
Class Name: IV2SLS
Method Name: fit


Project Name: bashtage/linearmodels
Commit Name: 1d47d1eb898ed47e60e8d38e2084f641b2190502
Time: 2017-02-23
Author: kevin.k.sheppard@gmail.com
File Name: panel/iv/model.py
Class Name: IVLIML
Method Name: fit


Project Name: bashtage/linearmodels
Commit Name: 1d47d1eb898ed47e60e8d38e2084f641b2190502
Time: 2017-02-23
Author: kevin.k.sheppard@gmail.com
File Name: panel/iv/model.py
Class Name: IV2SLS
Method Name: fit