12679af141523fc96e446656e41bd877ac7108ab,linearmodels/tests/panel/test_firstdifference_ols.py,,test_firstdifference_ols_weighted,#Any#,55

Before Change


    dx = dx.loc[~drop]
    sw = sw.loc[~drop]

    res2 = IV2SLS(dy, dx, None, None, weights=sw).fit("unadjusted")
    assert_results_equal(res, res2)


def test_first_difference_errors(data):

After Change


    dx = dx.loc[~drop]
    sw = sw.loc[~drop]

    ols_mod = IV2SLS(dy, dx, None, None, weights=sw)
    ols_res = ols_mod.fit("unadjusted")
    assert_results_equal(res, ols_res)

    res = mod.fit(cov_type="robust")
    ols_res = ols_mod.fit("robust")
    assert_results_equal(res, ols_res)

    clusters = mod.dependent.dataframe.copy()
    for entity in mod.dependent.entities:
        clusters.loc[entity] = np.random.randint(9)

    ols_clusters = clusters.copy()
    index = mod.dependent.first_difference().dataframe.index
    ols_clusters = ols_clusters.loc[index]

    res = mod.fit(cov_type="clustered", clusters=clusters)
    ols_res = ols_mod.fit(cov_type="clustered", clusters=ols_clusters)
    assert_results_equal(res, ols_res)


def test_first_difference_errors(data):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 12

Non-data size: 7

Instances


Project Name: bashtage/linearmodels
Commit Name: 12679af141523fc96e446656e41bd877ac7108ab
Time: 2017-04-05
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_firstdifference_ols.py
Class Name:
Method Name: test_firstdifference_ols_weighted


Project Name: bashtage/linearmodels
Commit Name: f322418309cc55068ae1ab8f1e4ed45e82ab8e0c
Time: 2017-04-05
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_panel_ols.py
Class Name:
Method Name: test_panel_both_lvsd_weighted


Project Name: bashtage/linearmodels
Commit Name: 12679af141523fc96e446656e41bd877ac7108ab
Time: 2017-04-05
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_firstdifference_ols.py
Class Name:
Method Name: test_firstdifference_ols_weighted


Project Name: bashtage/linearmodels
Commit Name: f322418309cc55068ae1ab8f1e4ed45e82ab8e0c
Time: 2017-04-05
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_panel_ols.py
Class Name:
Method Name: test_panel_other_lvsd


Project Name: bashtage/linearmodels
Commit Name: f322418309cc55068ae1ab8f1e4ed45e82ab8e0c
Time: 2017-04-05
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_panel_ols.py
Class Name:
Method Name: test_panel_other_fwl


Project Name: bashtage/linearmodels
Commit Name: f322418309cc55068ae1ab8f1e4ed45e82ab8e0c
Time: 2017-04-05
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_panel_ols.py
Class Name:
Method Name: test_panel_time_lvsd


Project Name: bashtage/linearmodels
Commit Name: f322418309cc55068ae1ab8f1e4ed45e82ab8e0c
Time: 2017-04-05
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_panel_ols.py
Class Name:
Method Name: test_panel_time_lvsd_weighted


Project Name: bashtage/linearmodels
Commit Name: f322418309cc55068ae1ab8f1e4ed45e82ab8e0c
Time: 2017-04-05
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_panel_ols.py
Class Name:
Method Name: test_panel_entity_lvsd


Project Name: bashtage/linearmodels
Commit Name: f322418309cc55068ae1ab8f1e4ed45e82ab8e0c
Time: 2017-04-05
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_panel_ols.py
Class Name:
Method Name: test_panel_time_fwl


Project Name: bashtage/linearmodels
Commit Name: f322418309cc55068ae1ab8f1e4ed45e82ab8e0c
Time: 2017-04-05
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_panel_ols.py
Class Name:
Method Name: test_panel_both_lvsd


Project Name: bashtage/linearmodels
Commit Name: f322418309cc55068ae1ab8f1e4ed45e82ab8e0c
Time: 2017-04-05
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_panel_ols.py
Class Name:
Method Name: test_panel_both_fwl


Project Name: bashtage/linearmodels
Commit Name: f322418309cc55068ae1ab8f1e4ed45e82ab8e0c
Time: 2017-04-05
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_panel_ols.py
Class Name:
Method Name: test_panel_entity_lvsd_weighted


Project Name: bashtage/linearmodels
Commit Name: f322418309cc55068ae1ab8f1e4ed45e82ab8e0c
Time: 2017-04-05
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_panel_ols.py
Class Name:
Method Name: test_panel_entity_fwl