econmethods 1__tar.gz → 1.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: econmethods
3
- Version: 1
3
+ Version: 1.2
4
4
  Summary: A python package implementing various econometrical tests and estimators
5
5
  Home-page: https://github.com/NaturionBG/econmethods
6
6
  Author: NaturionBG
@@ -1,11 +1,12 @@
1
1
  import numpy as np
2
2
  import pandas as pd
3
3
  import statsmodels.api as sm
4
- from itertools import product
4
+ from itertools import product, combinations
5
5
  import scipy.stats as sc
6
6
  from math import floor
7
7
  import importlib.resources as resources
8
8
  from statsmodels.regression.mixed_linear_model import MixedLM
9
+ from typing import Any
9
10
 
10
11
  def read_critical_values(sheet: str) -> pd.DataFrame:
11
12
  xlsx_path = resources.files("econmethods") / "CADF_Crit_Values.xlsx"
@@ -329,6 +330,10 @@ class FECM:
329
330
  self.__stat_vars = stat_vars
330
331
  self.__mean_names = ['target_avg']
331
332
  self.__x_difs = include_x_diffs
333
+ self.__stat = []
334
+ for i in range(1, len(stat_vars.columns[2:]+1)):
335
+ self.__stat.append(f'stat{i}')
336
+ self.__stat_vars.columns = ['SpUnit', 'time'] + self.__stat
332
337
  for i in range(1, self.__exog+1):
333
338
  self.__l.append(f'x{i}')
334
339
  self.__mean_names.append(f'x{i}_avg')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: econmethods
3
- Version: 1
3
+ Version: 1.2
4
4
  Summary: A python package implementing various econometrical tests and estimators
5
5
  Home-page: https://github.com/NaturionBG/econmethods
6
6
  Author: NaturionBG
@@ -5,7 +5,7 @@ with open('README.md', 'r') as f:
5
5
 
6
6
  setup(
7
7
  name = 'econmethods',
8
- version = 'v1',
8
+ version = 'v1.2',
9
9
  description='A python package implementing various econometrical tests and estimators',
10
10
  packages = find_packages(),
11
11
  long_description=long_desc,
File without changes
File without changes