Skip to content

Is there a way to force/hack zero 'contribution' from holiday binary variables? #329

Discussion options

You must be logged in to vote

Solution: treat the binary variable as an organic media variable.

In practice, this means:

  • adding the variable name to organic_vars so that zero 'impressions' will give zero return, e.g., organic_vars = c("Christmas_Day")
  • allow flexibility on whether the binary variable's contribution can be positive or negative, i.e., organic_signs = c("default")
  • to ensure no adstock is applied, set suitable hyperparameters, i.e., Christmas_Day_thetas = 0 in hyperparameters

After re-running the model using this 'hack', I seem to be getting the 'behaviour' I want, i.e., zero contribution on days when x=0 and non-zero contribution on days when x=1.

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@gedkitchener-CT
Comment options

Comment options

You must be logged in to vote
2 replies
@kyletgoldberg
Comment options

@swapnilpatil022
Comment options

Answer selected by gedkitchener-CT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants