diff-diff 0.2.0__py3-none-any.whl → 0.3.0__py3-none-any.whl
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.
- diff_diff/__init__.py +28 -3
- diff_diff/estimators.py +539 -28
- diff_diff/prep.py +844 -0
- diff_diff/results.py +234 -26
- diff_diff/utils.py +357 -18
- diff_diff-0.3.0.dist-info/METADATA +1145 -0
- diff_diff-0.3.0.dist-info/RECORD +9 -0
- diff_diff-0.2.0.dist-info/METADATA +0 -547
- diff_diff-0.2.0.dist-info/RECORD +0 -8
- {diff_diff-0.2.0.dist-info → diff_diff-0.3.0.dist-info}/WHEEL +0 -0
- {diff_diff-0.2.0.dist-info → diff_diff-0.3.0.dist-info}/top_level.txt +0 -0
diff_diff/__init__.py
CHANGED
|
@@ -5,14 +5,39 @@ This library provides sklearn-like estimators for causal inference
|
|
|
5
5
|
using the difference-in-differences methodology.
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
-
from diff_diff.estimators import DifferenceInDifferences, MultiPeriodDiD
|
|
9
|
-
from diff_diff.results import DiDResults, MultiPeriodDiDResults, PeriodEffect
|
|
8
|
+
from diff_diff.estimators import DifferenceInDifferences, MultiPeriodDiD, SyntheticDiD
|
|
9
|
+
from diff_diff.results import DiDResults, MultiPeriodDiDResults, PeriodEffect, SyntheticDiDResults
|
|
10
|
+
from diff_diff.prep import (
|
|
11
|
+
make_treatment_indicator,
|
|
12
|
+
make_post_indicator,
|
|
13
|
+
wide_to_long,
|
|
14
|
+
balance_panel,
|
|
15
|
+
validate_did_data,
|
|
16
|
+
summarize_did_data,
|
|
17
|
+
generate_did_data,
|
|
18
|
+
create_event_time,
|
|
19
|
+
aggregate_to_cohorts,
|
|
20
|
+
)
|
|
10
21
|
|
|
11
|
-
__version__ = "0.
|
|
22
|
+
__version__ = "0.3.0"
|
|
12
23
|
__all__ = [
|
|
24
|
+
# Estimators
|
|
13
25
|
"DifferenceInDifferences",
|
|
14
26
|
"MultiPeriodDiD",
|
|
27
|
+
"SyntheticDiD",
|
|
28
|
+
# Results
|
|
15
29
|
"DiDResults",
|
|
16
30
|
"MultiPeriodDiDResults",
|
|
31
|
+
"SyntheticDiDResults",
|
|
17
32
|
"PeriodEffect",
|
|
33
|
+
# Data preparation utilities
|
|
34
|
+
"make_treatment_indicator",
|
|
35
|
+
"make_post_indicator",
|
|
36
|
+
"wide_to_long",
|
|
37
|
+
"balance_panel",
|
|
38
|
+
"validate_did_data",
|
|
39
|
+
"summarize_did_data",
|
|
40
|
+
"generate_did_data",
|
|
41
|
+
"create_event_time",
|
|
42
|
+
"aggregate_to_cohorts",
|
|
18
43
|
]
|