-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy path__init__.py
More file actions
61 lines (54 loc) · 1.4 KB
/
__init__.py
File metadata and controls
61 lines (54 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
"""
Visualization functions for difference-in-differences analysis.
Provides event study plots, diagnostic visualizations, and other plotting
utilities with support for matplotlib (default) and plotly backends.
"""
# Event study plots
# Continuous DiD plots
from diff_diff.visualization._continuous import (
plot_dose_response,
)
# Diagnostic plots
from diff_diff.visualization._diagnostic import (
plot_bacon,
plot_sensitivity,
)
from diff_diff.visualization._event_study import (
PlottableResults,
_extract_plot_data,
plot_event_study,
plot_honest_event_study,
)
# Power analysis plots
from diff_diff.visualization._power import (
plot_power_curve,
plot_pretrends_power,
)
# Staggered DiD plots
from diff_diff.visualization._staggered import (
plot_group_effects,
plot_group_time_heatmap,
plot_staircase,
)
# Synthetic control plots
from diff_diff.visualization._synthetic import (
plot_synth_weights,
)
__all__ = [
# Existing public functions
"plot_event_study",
"plot_honest_event_study",
"plot_group_effects",
"plot_sensitivity",
"plot_bacon",
"plot_power_curve",
"plot_pretrends_power",
# New public functions
"plot_synth_weights",
"plot_staircase",
"plot_dose_response",
"plot_group_time_heatmap",
# Re-exported for backward compatibility (used in tests)
"_extract_plot_data",
"PlottableResults",
]