MixedLogit.plot_change#

static MixedLogit.plot_change(change_df, title='Change in Market Share due to Intervention', figsize=(8, 4))[source]#

Plot change induced by a market intervention.

Parameters:
change_dfpd.DataFrame

DataFrame indexed by product with columns: - ‘policy_share’: share before intervention - ‘new_policy_share’: share after intervention

titlestr, optional

Title of the plot.

figsizetuple, optional

Size of the plot in inches, as (width, height).

Returns:
matplotlib.figure.Figure

Figure showing before/after market share comparisons.