diffindiff 1.2.1__tar.gz → 2.0.0__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.
- {diffindiff-1.2.1 → diffindiff-2.0.0}/PKG-INFO +6 -19
- {diffindiff-1.2.1 → diffindiff-2.0.0}/README.md +4 -3
- diffindiff-2.0.0/diffindiff/__init__.py +3 -0
- diffindiff-2.0.0/diffindiff/didanalysis.py +1974 -0
- {diffindiff-1.2.1 → diffindiff-2.0.0}/diffindiff/diddata.py +414 -142
- {diffindiff-1.2.1 → diffindiff-2.0.0}/diffindiff/didtools.py +107 -39
- diffindiff-1.2.1/diffindiff/tests/test_diddata.py → diffindiff-2.0.0/diffindiff/tests/tests_diffindiff.py +177 -48
- {diffindiff-1.2.1 → diffindiff-2.0.0}/diffindiff.egg-info/PKG-INFO +6 -19
- {diffindiff-1.2.1 → diffindiff-2.0.0}/diffindiff.egg-info/SOURCES.txt +1 -2
- {diffindiff-1.2.1 → diffindiff-2.0.0}/setup.py +1 -1
- diffindiff-1.2.1/diffindiff/__init__.py +0 -3
- diffindiff-1.2.1/diffindiff/didanalysis.py +0 -1863
- diffindiff-1.2.1/diffindiff/tests/test_didanalysis.py +0 -108
- {diffindiff-1.2.1 → diffindiff-2.0.0}/MANIFEST.in +0 -0
- {diffindiff-1.2.1 → diffindiff-2.0.0}/diffindiff/tests/__init__.py +0 -0
- {diffindiff-1.2.1 → diffindiff-2.0.0}/diffindiff/tests/data/Corona_Hesse.xlsx +0 -0
- {diffindiff-1.2.1 → diffindiff-2.0.0}/diffindiff/tests/data/counties_DE.csv +0 -0
- {diffindiff-1.2.1 → diffindiff-2.0.0}/diffindiff/tests/data/curfew_DE.csv +0 -0
- {diffindiff-1.2.1 → diffindiff-2.0.0}/diffindiff.egg-info/dependency_links.txt +0 -0
- {diffindiff-1.2.1 → diffindiff-2.0.0}/diffindiff.egg-info/requires.txt +0 -0
- {diffindiff-1.2.1 → diffindiff-2.0.0}/diffindiff.egg-info/top_level.txt +0 -0
- {diffindiff-1.2.1 → diffindiff-2.0.0}/setup.cfg +0 -0
|
@@ -1,24 +1,10 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
2
|
Name: diffindiff
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.0
|
|
4
4
|
Summary: diffindiff: Python library for convenient Difference-in-Differences Analyses
|
|
5
5
|
Author: Thomas Wieland
|
|
6
6
|
Author-email: geowieland@googlemail.com
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
|
-
Requires-Dist: numpy
|
|
9
|
-
Requires-Dist: pandas
|
|
10
|
-
Requires-Dist: statsmodels
|
|
11
|
-
Requires-Dist: matplotlib
|
|
12
|
-
Requires-Dist: datetime
|
|
13
|
-
Requires-Dist: scikit-learn
|
|
14
|
-
Requires-Dist: xgboost
|
|
15
|
-
Requires-Dist: lightgbm
|
|
16
|
-
Dynamic: author
|
|
17
|
-
Dynamic: author-email
|
|
18
|
-
Dynamic: description
|
|
19
|
-
Dynamic: description-content-type
|
|
20
|
-
Dynamic: requires-dist
|
|
21
|
-
Dynamic: summary
|
|
22
8
|
|
|
23
9
|
# diffindiff: Difference-in-Differences (DiD) Analysis Python Library
|
|
24
10
|
|
|
@@ -40,21 +26,22 @@ Thomas Wieland [ORCID](https://orcid.org/0000-0001-5168-9846) [EMail](mailto:geo
|
|
|
40
26
|
- Perfom standard DiD analysis
|
|
41
27
|
- Model Extensions:
|
|
42
28
|
- Staggered adoption
|
|
29
|
+
- Multiple treatments
|
|
43
30
|
- Two-way fixed effects models
|
|
44
31
|
- Group- or individual-specific treatment effects
|
|
45
32
|
- Group- or individual-specific time trends
|
|
46
33
|
- Including covariates
|
|
47
34
|
- After-treatment period
|
|
48
35
|
- Triple Difference (DDD)
|
|
49
|
-
- Multiple treatments
|
|
50
36
|
- Own counterfactuals
|
|
51
|
-
-
|
|
37
|
+
- Bonferroni correction
|
|
38
|
+
- **Visualization**:
|
|
52
39
|
- Plot observed and expected time course of treatment and control group
|
|
53
40
|
- Plot expected time course of treatment group and counterfactual
|
|
54
41
|
- Plot model coefficients with confidence intervals
|
|
55
42
|
- Plot individual or group-specific treatment effects with confidence intervals
|
|
56
43
|
- Visualize the temporal evolution of staggered treatments
|
|
57
|
-
- **Diagnosis tools**:
|
|
44
|
+
- **Diagnosis tools**:
|
|
58
45
|
- Test for control conditions
|
|
59
46
|
- Test for type of adoption
|
|
60
47
|
- Test whether the panel dataset is balanced
|
|
@@ -18,21 +18,22 @@ Thomas Wieland [ORCID](https://orcid.org/0000-0001-5168-9846) [EMail](mailto:geo
|
|
|
18
18
|
- Perfom standard DiD analysis
|
|
19
19
|
- Model Extensions:
|
|
20
20
|
- Staggered adoption
|
|
21
|
+
- Multiple treatments
|
|
21
22
|
- Two-way fixed effects models
|
|
22
23
|
- Group- or individual-specific treatment effects
|
|
23
24
|
- Group- or individual-specific time trends
|
|
24
25
|
- Including covariates
|
|
25
26
|
- After-treatment period
|
|
26
27
|
- Triple Difference (DDD)
|
|
27
|
-
- Multiple treatments
|
|
28
28
|
- Own counterfactuals
|
|
29
|
-
-
|
|
29
|
+
- Bonferroni correction
|
|
30
|
+
- **Visualization**:
|
|
30
31
|
- Plot observed and expected time course of treatment and control group
|
|
31
32
|
- Plot expected time course of treatment group and counterfactual
|
|
32
33
|
- Plot model coefficients with confidence intervals
|
|
33
34
|
- Plot individual or group-specific treatment effects with confidence intervals
|
|
34
35
|
- Visualize the temporal evolution of staggered treatments
|
|
35
|
-
- **Diagnosis tools**:
|
|
36
|
+
- **Diagnosis tools**:
|
|
36
37
|
- Test for control conditions
|
|
37
38
|
- Test for type of adoption
|
|
38
39
|
- Test whether the panel dataset is balanced
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
from diffindiff.didanalysis import DiffModel, did_analysis
|
|
2
|
+
from diffindiff.diddata import DiffGroups, create_groups, DiffTreatment, create_treatment, DiffData, merge_data, create_data
|
|
3
|
+
from diffindiff.didtools import is_balanced, is_missing, is_simultaneous, is_notreatment, date_counter, check_columns, is_binary, is_parallel, unique, model_wrapper, treatment_times, clean_column_name, to_dummies
|