96831d656a0693ff9dfea5872300a36a71114868,linearmodels/tests/panel/test_formula.py,,test_basic_formulas_predict,#Any#Any#Any#,179

Before Change



    parts = formula.split("~")
    variables = parts[1].replace(" 1 ", " const ").split("+")
    variables = list(map(lambda s: s.strip(), variables))
    x = data.x
    res2 = model(data.y, x[variables]).fit()
    pred3 = res2.predict(x[variables])
    pred4 = res.predict(x[variables])

After Change



    parts = formula.split("~")
    variables = parts[1].replace(" 1 ", " const ").split("+")
    variables = [s.strip() for s in variables]
    x = data.x
    res2 = model(data.y, x[variables]).fit()
    pred3 = res2.predict(x[variables])
    pred4 = res.predict(x[variables])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: bashtage/linearmodels
Commit Name: 96831d656a0693ff9dfea5872300a36a71114868
Time: 2021-02-09
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_formula.py
Class Name:
Method Name: test_basic_formulas_predict


Project Name: bashtage/linearmodels
Commit Name: 96831d656a0693ff9dfea5872300a36a71114868
Time: 2021-02-09
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_formula.py
Class Name:
Method Name: test_basic_formulas


Project Name: bashtage/linearmodels
Commit Name: 96831d656a0693ff9dfea5872300a36a71114868
Time: 2021-02-09
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_formula.py
Class Name:
Method Name: test_formulas_predict_error