MMMPlotSuite.plot_sensitivity_analysis#
- MMMPlotSuite.plot_sensitivity_analysis(hdi_prob=0.94, ax=None, marginal=False, percentage=False)[source]#
Plot the counterfactual uplift or marginal effects curve.
- Parameters:
- results
xr.Dataset
The dataset containing the results of the sweep.
- hdi_prob
float
, optional The probability for computing the highest density interval (HDI). Default is 0.94.
- ax
Optional
[plt.Axes
], optional An optional matplotlib Axes on which to plot. If None, a new Axes is created.
- marginalbool, optional
If True, plot marginal effects. If False (default), plot uplift.
- percentagebool, optional
If True, plot the results on the y-axis as percentages, instead of absolute values. Default is False.
- results
- Returns:
plt.Axes
The Axes object with the plot.