diff_diff.sensitivity_plot

diff_diff.sensitivity_plot(results, method='relative_magnitude', M_grid=None, alpha=0.05, ax=None, **kwargs)[source]

Create a sensitivity analysis plot.

Parameters:
  • results (MultiPeriodDiDResults or CallawaySantAnnaResults) – Results from event study estimation.

  • method (str) – Type of restriction.

  • M_grid (list of float, optional) – Grid of M values.

  • alpha (float) – Significance level.

  • ax (matplotlib.axes.Axes, optional) – Axes to plot on.

  • **kwargs – Additional arguments passed to plot method.

Returns:

ax – The axes with the plot.

Return type:

matplotlib.axes.Axes