Carryover vs Immediate Effects #623
Unanswered
nupur-greenhouse
asked this question in
Q&A
Replies: 1 comment
-
|
@nupur-greenhouse I'm also struggling to make the breakdown match the output in the pdf. I'm assuming I have a flaw in logic - but my xDecomp vectors match the decompMedia in pareto_media_transform_matrix.csv. The model is showing a 54% carryover response while I'm getting 99%. Any guidance on overall logic (or including the xDecompVector in an output file) would be helpful. I used |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I've been trying to figure out how you get % breakdown for Carryover vs Immediate effect come from in the one-pagers. I've seen the code in the main/R/R/model.R file. I am able to recreate the total decomposition based on the saturatedMedia * coef, but I can't get the breakdown of Immediate vs Carryover to match the output.
I am following that carryover = x_decay - rawMedia in Line 1. But I'm not sure what is going in Line 2 and Line 3. Can you help me understand this? Thank you very much.
Line 1: m_carryover <- m_adstocked - m
Line 2: m[m_carryover < 0] <- m_adstocked[m_carryover < 0] # adapt for weibull_pdf with lags
Line 3: m_carryover[m_carryover < 0] <- 0 # adapt for weibull_pdf with lags
Line 4: mediaImmediate[[v]] <- m
Line 5: mediaCarryover[[v]] <- m_carryover
Beta Was this translation helpful? Give feedback.
All reactions