SyntheticDifferenceInDifferences.plot#
- SyntheticDifferenceInDifferences.plot(*, round_to=None, show=True, legend_kwargs=None)[source]#
Plot SDiD results: counterfactual, period impact, and cumulative impact.
- Parameters:
round_to (
int|None) – Number of decimals used to round the ATT in the title. Defaults to 2. UseNonefor raw values.show (
bool) – Whether to callmatplotlib.pyplot.show()after drawing. Defaults toTrue.legend_kwargs (
dict[str,Any] |None) – Keyword arguments applied to the top-axis legend in place after the figure is built. Supported keys includeloc,bbox_to_anchor,fontsize,frameon,title, and optionallybbox_transformalongsidebbox_to_anchor. See_render_plot().
- Returns:
fig (matplotlib.figure.Figure) – The figure containing the three stacked panels.
ax (numpy.ndarray) – Array of the three
matplotlib.axes.Axesinstances.
- Return type: