251cee0f42484dfc01742f040b1bfcd6a640dd6e,statsmodels/genmod/tests/results/results_glm.py,Medpar1,__init__,#Medpar1#,2222
Before Change
data = pd.read_csv(filename).to_records()
self.endog = data.los
design = np.column_stack((data.admitype, data.codes))
design = categorical(design, col=0, drop=True)
design = np.delete(design, 1, axis=1) // drop first dummy
self.exog = add_constant(design, prepend=False)
After Change
"stata_medpar1_glm.csv")
data = pd.read_csv(filename).to_records()
self.endog = data.los
dummies = pd.get_dummies(data.admitype, prefix="race", drop_first=True)
design = np.column_stack((data.codes, dummies)).astype(float)
self.exog = add_constant(design, prepend=False)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: statsmodels/statsmodels
Commit Name: 251cee0f42484dfc01742f040b1bfcd6a640dd6e
Time: 2020-07-02
Author: kevin.sheppard@gmail.com
File Name: statsmodels/genmod/tests/results/results_glm.py
Class Name: Medpar1
Method Name: __init__
Project Name: statsmodels/statsmodels
Commit Name: d8c16fb43372826fa3b24d4b166edb2cef7aa96a
Time: 2020-07-24
Author: kevin.k.sheppard@gmail.com
File Name: statsmodels/discrete/discrete_model.py
Class Name:
Method Name: _numpy_to_dummies
Project Name: statsmodels/statsmodels
Commit Name: 251cee0f42484dfc01742f040b1bfcd6a640dd6e
Time: 2020-07-02
Author: kevin.sheppard@gmail.com
File Name: statsmodels/genmod/tests/results/results_glm.py
Class Name: Cancer
Method Name: __init__