f373fff0861a23f1fb4a82a108cbd7817761083d,experiment.py,,,#,4
Before Change from linearmodels.panel.data import PanelData
from linearmodels.tests.panel.test_data import panel
data = PanelData(panel())
print(data)
print(data.demean("time"))
After Change
import pandas as pd
data =pd.read_stata(r"C:\git\linearmodels\linearmodels\tests\panel\results\simulated-panel.dta")
data = data.set_index(["firm","time"] )
y = data[["y"]]
x = data[["intercept","x1","x2","x3","x4","x5"]]
from linearmodels.panel.model import PanelOLS
print(PanelOLS(y,x).fit())
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: bashtage/linearmodels
Commit Name: f373fff0861a23f1fb4a82a108cbd7817761083d
Time: 2017-03-24
Author: kevin.k.sheppard@gmail.com
File Name: experiment.py
Class Name:
Method Name:
Project Name: bashtage/linearmodels
Commit Name: 548f35f232e13d87d150fa5b5b00ecd2123dc206
Time: 2018-06-02
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_data.py
Class Name:
Method Name: test_demean_both_large_t
Project Name: bashtage/linearmodels
Commit Name: 548f35f232e13d87d150fa5b5b00ecd2123dc206
Time: 2018-06-02
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_data.py
Class Name:
Method Name: test_incorrect_time_axis