diffindiff 1.2.0__tar.gz → 1.2.1__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.2
2
2
  Name: diffindiff
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: diffindiff: Python library for convenient Difference-in-Differences Analyses
5
5
  Author: Thomas Wieland
6
6
  Author-email: geowieland@googlemail.com
@@ -10,7 +10,7 @@ Requires-Dist: pandas
10
10
  Requires-Dist: statsmodels
11
11
  Requires-Dist: matplotlib
12
12
  Requires-Dist: datetime
13
- Requires-Dist: sklearn
13
+ Requires-Dist: scikit-learn
14
14
  Requires-Dist: xgboost
15
15
  Requires-Dist: lightgbm
16
16
  Dynamic: author
@@ -46,6 +46,7 @@ Thomas Wieland [ORCID](https://orcid.org/0000-0001-5168-9846) [EMail](mailto:geo
46
46
  - Including covariates
47
47
  - After-treatment period
48
48
  - Triple Difference (DDD)
49
+ - Multiple treatments
49
50
  - Own counterfactuals
50
51
  - **Visualization**: e.g.
51
52
  - Plot observed and expected time course of treatment and control group
@@ -24,6 +24,7 @@ Thomas Wieland [ORCID](https://orcid.org/0000-0001-5168-9846) [EMail](mailto:geo
24
24
  - Including covariates
25
25
  - After-treatment period
26
26
  - Triple Difference (DDD)
27
+ - Multiple treatments
27
28
  - Own counterfactuals
28
29
  - **Visualization**: e.g.
29
30
  - Plot observed and expected time course of treatment and control group
@@ -2,8 +2,8 @@
2
2
  # Name: diddata (diffindiff)
3
3
  # Purpose: Creating data for Difference-in-Differences Analysis
4
4
  # Author: Thomas Wieland (geowieland@googlemail.com)
5
- # Version: 1.2.0
6
- # Last update: 2025-03-25 19:28
5
+ # Version: 1.2.1
6
+ # Last update: 2025-03-25 20:16
7
7
  # Copyright (c) 2025 Thomas Wieland
8
8
  #-------------------------------------------------------------------------------
9
9
 
@@ -359,11 +359,6 @@ class did_data:
359
359
 
360
360
  return self
361
361
 
362
- def add_treatment( # TODO ?? hier Funktion, die 1 weiteres Treament hinzufuegt
363
- self
364
- ):
365
- pass
366
-
367
362
  def add_segmentation(
368
363
  self,
369
364
  group_benefit: list
@@ -642,22 +637,6 @@ def create_data(
642
637
 
643
638
  return did_data_all
644
639
 
645
- class counterfactual: # TODO ??
646
- def __init__(
647
- self,
648
- model_results
649
-
650
- ):
651
-
652
- self.data = [
653
- model_results
654
- ]
655
-
656
- def get_modelresults (self):
657
- return self.data[0]
658
-
659
-
660
-
661
640
  def create_counterfactual(
662
641
  data,
663
642
  y: str,
@@ -708,7 +687,7 @@ def create_counterfactual(
708
687
  units = didtools.unique(units_tt[unit_col])
709
688
 
710
689
  if not isnotreatment[0]:
711
- print ("No no-treatment control group")
690
+ print ("No no-treatment control group. Counterfactual will not cover full treatment time.")
712
691
 
713
692
  data_TG = pd.DataFrame(columns = data.columns)
714
693
  for unit in units:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: diffindiff
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: diffindiff: Python library for convenient Difference-in-Differences Analyses
5
5
  Author: Thomas Wieland
6
6
  Author-email: geowieland@googlemail.com
@@ -10,7 +10,7 @@ Requires-Dist: pandas
10
10
  Requires-Dist: statsmodels
11
11
  Requires-Dist: matplotlib
12
12
  Requires-Dist: datetime
13
- Requires-Dist: sklearn
13
+ Requires-Dist: scikit-learn
14
14
  Requires-Dist: xgboost
15
15
  Requires-Dist: lightgbm
16
16
  Dynamic: author
@@ -46,6 +46,7 @@ Thomas Wieland [ORCID](https://orcid.org/0000-0001-5168-9846) [EMail](mailto:geo
46
46
  - Including covariates
47
47
  - After-treatment period
48
48
  - Triple Difference (DDD)
49
+ - Multiple treatments
49
50
  - Own counterfactuals
50
51
  - **Visualization**: e.g.
51
52
  - Plot observed and expected time course of treatment and control group
@@ -3,6 +3,6 @@ pandas
3
3
  statsmodels
4
4
  matplotlib
5
5
  datetime
6
- sklearn
6
+ scikit-learn
7
7
  xgboost
8
8
  lightgbm
@@ -7,7 +7,7 @@ def read_README():
7
7
 
8
8
  setup(
9
9
  name='diffindiff',
10
- version='1.2.0',
10
+ version='1.2.1',
11
11
  description='diffindiff: Python library for convenient Difference-in-Differences Analyses',
12
12
  packages=find_packages(include=["diffindiff", "diffindiff.tests"]),
13
13
  include_package_data=True,
@@ -25,7 +25,7 @@ setup(
25
25
  'statsmodels',
26
26
  'matplotlib',
27
27
  'datetime',
28
- 'sklearn',
28
+ 'scikit-learn',
29
29
  'xgboost',
30
30
  'lightgbm'
31
31
  ],
File without changes
File without changes