5d2d55e411f66ae989d771eb29819f2dfb508986,linearmodels/iv/tests/test_against_stata.py,TestSimulatedResults,test_weight_mat,#TestSimulatedResults#Any#,183

Before Change


    def test_weight_mat(self, simulated):
        res, stata = simulated
        if not hasattr(stata, "weight_mat") or not isinstance(stata.weight_mat, pd.DataFrame):
            pytest.skip("Comparison result not available")
        stata_weight_mat = stata.weight_mat.reindex_like(res.weight_matrix)
        stata_weight_mat = stata_weight_mat[res.weight_matrix.columns]
        assert_allclose(res.weight_matrix, stata_weight_mat, rtol=1e-4)

After Change


    def test_weight_mat(self, simulated):
        res, stata = simulated
        if not hasattr(stata, "weight_mat") or not isinstance(stata.weight_mat, pd.DataFrame):
            return
        stata_weight_mat = stata.weight_mat.reindex_like(res.weight_matrix)
        stata_weight_mat = stata_weight_mat[res.weight_matrix.columns]
        assert_allclose(res.weight_matrix, stata_weight_mat, rtol=1e-4)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: bashtage/linearmodels
Commit Name: 5d2d55e411f66ae989d771eb29819f2dfb508986
Time: 2017-03-20
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/iv/tests/test_against_stata.py
Class Name: TestSimulatedResults
Method Name: test_weight_mat


Project Name: bashtage/linearmodels
Commit Name: 5d2d55e411f66ae989d771eb29819f2dfb508986
Time: 2017-03-20
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/iv/tests/test_against_stata.py
Class Name: TestSimulatedResults
Method Name: test_rsquared


Project Name: bashtage/linearmodels
Commit Name: 5d2d55e411f66ae989d771eb29819f2dfb508986
Time: 2017-03-20
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/iv/tests/test_against_stata.py
Class Name: TestSimulatedResults
Method Name: test_j_stat


Project Name: bashtage/linearmodels
Commit Name: 5d2d55e411f66ae989d771eb29819f2dfb508986
Time: 2017-03-20
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/iv/tests/test_against_stata.py
Class Name: TestSimulatedResults
Method Name: test_rsquared_adj


Project Name: bashtage/linearmodels
Commit Name: 5d2d55e411f66ae989d771eb29819f2dfb508986
Time: 2017-03-20
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/iv/tests/test_against_stata.py
Class Name: TestSimulatedResults
Method Name: test_kappa