Replies: 2 comments 4 replies
-
|
To extract weekly baseline estimates, use this:
You can add np.mean (like below) if you want to just take the mean value. Then to extract the individual variables, something like this. Note that you'll need to align your variable names for the headers; the order being media, non-media, control if I recall correctly. Sorry - I've never bothered trying to join headers back in Python but if you work out how just throw it in below? |
Beta Was this translation helpful? Give feedback.
-
|
Hello @njprice17, Thank you for contacting us! If you are looking the breakdown of the baseline into the impact from various control variables, I would advise against that as controls don’t have causal impact and breaking the baseline down to compute those causal attributions may not make sense. Check our documentation on reasons controls don’t have causal inference or baseline breakdown for more details. You may check Discussion #249 for an approximate workaround if you need it for your analysis and for exploratory purposes. If you are looking for simple weekly or geo-level decompositions of metrics in the The To help me provide the most tailored code, could you please clarify what specific individual variables (beyond media channels) you are looking to decompose? This will allow me to point you to the most appropriate method in Meridian. Feel free to reach out for any further questions or suggestions regarding Meridian. Google Meridian Support Team |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to recover a variable level weekly decomposition so not just a breakdown by media channel and baseline but by each individual variable, would it be possible to share how to do this?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions