plot_peak#

pymc_marketing.bass.plotting.plot_peak(model, dim=None, coord=None, **plot_dist_kwargs)[source]#

Plot the posterior distribution of the peak adoption time.

Parameters:
modelBassModel

A fitted Bass model.

dimstr, optional

Dimension to facet over. Inferred from the fitted data when not given (the non-time, non-sample dimension).

coordstr, optional

Plot a single coordinate along dim. Default plots one subplot per coordinate.

**plot_dist_kwargs

Additional kwargs forwarded to arviz_plots.plot_dist().

Returns:
tuple[Figure, ndarray of Axes]

Figure and the axes.