Contributions for each variable per time period #374
Replies: 2 comments
-
|
Meridian has a function in the analyzer class called incremental_impact that returns the contributions for each media channel for each draw. The default behavior is to return the impact values for the entire time period, so you would need to specify the time values of interest and take the mean or median of the draws to get the channel-specific estimates. Below is a code example for accessing those values. Because of lagged effects, we don't recommend outputting the incremental impact for individual media at the weekly level. If you do repeated aggregations over time, you may want to make sure the aggregations are at least As for control variables, they are mainly used to determine the baseline, but they are not attributed with a contribution to the KPI. If you want to estimate a causal effect for a variable, you can consider including it as a non-media treatment. |
Beta Was this translation helpful? Give feedback.
-
|
Hey @edwardtan2 ! For visualizing weekly contributions, check out the It generates a stacked area chart showing the estimated contribution of the baseline and each channel for every week. This provides that decompositional view over time you're looking for, showing how the modelled total breaks down into its core drivers. You can see an example here: meridian-getting-started |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a national geo model on a weekly time period and am looking to get the contributions (fitted values) per week for each of the explanatory variables - ie. controls, media channels. Is there a way to quickly retrieve this? This would be similar to the pymc marketing function 'mmm.compute_mean_contributions_over_time'. Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions