econmethods 3.0.3__tar.gz → 3.0.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {econmethods-3.0.3 → econmethods-3.0.5}/PKG-INFO +1 -1
- {econmethods-3.0.3 → econmethods-3.0.5}/econmethods/Lib.py +11 -3
- {econmethods-3.0.3 → econmethods-3.0.5}/econmethods.egg-info/PKG-INFO +1 -1
- {econmethods-3.0.3 → econmethods-3.0.5}/setup.py +1 -1
- {econmethods-3.0.3 → econmethods-3.0.5}/README.md +0 -0
- {econmethods-3.0.3 → econmethods-3.0.5}/econmethods/CADF_Crit_Values.xlsx +0 -0
- {econmethods-3.0.3 → econmethods-3.0.5}/econmethods/__init__.py +0 -0
- {econmethods-3.0.3 → econmethods-3.0.5}/econmethods.egg-info/SOURCES.txt +0 -0
- {econmethods-3.0.3 → econmethods-3.0.5}/econmethods.egg-info/dependency_links.txt +0 -0
- {econmethods-3.0.3 → econmethods-3.0.5}/econmethods.egg-info/requires.txt +0 -0
- {econmethods-3.0.3 → econmethods-3.0.5}/econmethods.egg-info/top_level.txt +0 -0
- {econmethods-3.0.3 → econmethods-3.0.5}/setup.cfg +0 -0
|
@@ -511,7 +511,11 @@ class FECM:
|
|
|
511
511
|
if self.__method == 'ccemg':
|
|
512
512
|
units = self.__ccemg_units
|
|
513
513
|
for i, model in enumerate(units):
|
|
514
|
-
|
|
514
|
+
if 'const' not in drop:
|
|
515
|
+
model = model.drop(columns=drop)
|
|
516
|
+
else:
|
|
517
|
+
self.__C = False
|
|
518
|
+
drop.remove('const')
|
|
515
519
|
if self.__C:
|
|
516
520
|
est.append(sm.OLS(model['target_diff'], sm.add_constant(model.iloc[:, 3:])).fit())
|
|
517
521
|
else:
|
|
@@ -525,7 +529,11 @@ class FECM:
|
|
|
525
529
|
elif self.__method == 'mg':
|
|
526
530
|
units = self.__mg_units
|
|
527
531
|
for i, model in enumerate(units):
|
|
528
|
-
|
|
532
|
+
if 'const' not in drop:
|
|
533
|
+
model = model.drop(columns=drop)
|
|
534
|
+
else:
|
|
535
|
+
self.__C = False
|
|
536
|
+
drop.remove('const')
|
|
529
537
|
if self.__C:
|
|
530
538
|
est.append(sm.OLS(model['target_diff'], sm.add_constant(model.iloc[:, 3:])).fit())
|
|
531
539
|
else:
|
|
@@ -534,7 +542,7 @@ class FECM:
|
|
|
534
542
|
self.__mg_units[i] = self.__mg_units[i].drop(columns=drop)
|
|
535
543
|
else:
|
|
536
544
|
self.__C = False
|
|
537
|
-
drop
|
|
545
|
+
drop.remove('const')
|
|
538
546
|
return est
|
|
539
547
|
elif self.__method == 'ccep':
|
|
540
548
|
units = self.get_ccemg_frames(self.__lag)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|