helpers#
Shared computation helpers for MMM summary factories.
Functions
|
Compute each channel's share of total channel contribution. |
|
Compute residuals as target minus posterior predictions. |
|
Module-level wrapper around |
|
Mean contributions over date per component for waterfall summaries. |
|
Module-level wrapper around |
Convert a summary DataFrame to JSON-serializable records. |
|
|
Return channel spend or raw channel data based on cost-per-unit flag. |
|
Return the correct idata group for prior predictive plotting. |
|
Prepare sensitivity data for summary tables (steps 1-5 of sensitivity plots). |
Classes
Lightweight helper for HDI summary stats and output conversion. |