diff-diff 0.4.0__py3-none-any.whl → 0.6.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 CHANGED
@@ -5,16 +5,42 @@ 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.diagnostics import (
9
+ PlaceboTestResults,
10
+ leave_one_out_test,
11
+ permutation_test,
12
+ placebo_group_test,
13
+ placebo_timing_test,
14
+ run_all_placebo_tests,
15
+ run_placebo_test,
16
+ )
8
17
  from diff_diff.estimators import (
9
18
  DifferenceInDifferences,
10
- TwoWayFixedEffects,
11
19
  MultiPeriodDiD,
12
20
  SyntheticDiD,
21
+ TwoWayFixedEffects,
13
22
  )
14
- from diff_diff.staggered import (
15
- CallawaySantAnna,
16
- CallawaySantAnnaResults,
17
- GroupTimeEffect,
23
+ from diff_diff.honest_did import (
24
+ DeltaRM,
25
+ DeltaSD,
26
+ DeltaSDRM,
27
+ HonestDiD,
28
+ HonestDiDResults,
29
+ SensitivityResults,
30
+ compute_honest_did,
31
+ sensitivity_plot,
32
+ )
33
+ from diff_diff.prep import (
34
+ aggregate_to_cohorts,
35
+ balance_panel,
36
+ create_event_time,
37
+ generate_did_data,
38
+ make_post_indicator,
39
+ make_treatment_indicator,
40
+ rank_control_units,
41
+ summarize_did_data,
42
+ validate_did_data,
43
+ wide_to_long,
18
44
  )
19
45
  from diff_diff.results import (
20
46
  DiDResults,
@@ -22,29 +48,26 @@ from diff_diff.results import (
22
48
  PeriodEffect,
23
49
  SyntheticDiDResults,
24
50
  )
25
- from diff_diff.visualization import (
26
- plot_event_study,
27
- plot_group_effects,
28
- )
29
- from diff_diff.prep import (
30
- make_treatment_indicator,
31
- make_post_indicator,
32
- wide_to_long,
33
- balance_panel,
34
- validate_did_data,
35
- summarize_did_data,
36
- generate_did_data,
37
- create_event_time,
38
- aggregate_to_cohorts,
39
- rank_control_units,
51
+ from diff_diff.staggered import (
52
+ CallawaySantAnna,
53
+ CallawaySantAnnaResults,
54
+ GroupTimeEffect,
40
55
  )
41
56
  from diff_diff.utils import (
57
+ WildBootstrapResults,
42
58
  check_parallel_trends,
43
59
  check_parallel_trends_robust,
44
60
  equivalence_test_trends,
61
+ wild_bootstrap_se,
62
+ )
63
+ from diff_diff.visualization import (
64
+ plot_event_study,
65
+ plot_group_effects,
66
+ plot_honest_event_study,
67
+ plot_sensitivity,
45
68
  )
46
69
 
47
- __version__ = "0.4.0"
70
+ __version__ = "0.6.0"
48
71
  __all__ = [
49
72
  # Estimators
50
73
  "DifferenceInDifferences",
@@ -62,10 +85,23 @@ __all__ = [
62
85
  # Visualization
63
86
  "plot_event_study",
64
87
  "plot_group_effects",
88
+ "plot_sensitivity",
89
+ "plot_honest_event_study",
65
90
  # Parallel trends testing
66
91
  "check_parallel_trends",
67
92
  "check_parallel_trends_robust",
68
93
  "equivalence_test_trends",
94
+ # Wild cluster bootstrap
95
+ "WildBootstrapResults",
96
+ "wild_bootstrap_se",
97
+ # Placebo tests / diagnostics
98
+ "PlaceboTestResults",
99
+ "run_placebo_test",
100
+ "placebo_timing_test",
101
+ "placebo_group_test",
102
+ "permutation_test",
103
+ "leave_one_out_test",
104
+ "run_all_placebo_tests",
69
105
  # Data preparation utilities
70
106
  "make_treatment_indicator",
71
107
  "make_post_indicator",
@@ -77,4 +113,13 @@ __all__ = [
77
113
  "create_event_time",
78
114
  "aggregate_to_cohorts",
79
115
  "rank_control_units",
116
+ # Honest DiD sensitivity analysis
117
+ "HonestDiD",
118
+ "HonestDiDResults",
119
+ "SensitivityResults",
120
+ "DeltaSD",
121
+ "DeltaRM",
122
+ "DeltaSDRM",
123
+ "compute_honest_did",
124
+ "sensitivity_plot",
80
125
  ]