Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reallocate budget on a time window where some media channels have 0 spendings #1033

Open
nicologiammaria opened this issue Aug 16, 2024 · 0 comments

Comments

@nicologiammaria
Copy link

I am trying to reallocate budget with a few constraints on the media spendings as follow:

  • reallocate just digital medias (+/- 30%)
  • keep constant non-digital medias
  • some of the non-digital medias have 0 spendings in the selected time window
    When looking at the report, I see that one non-digital media channel, that has 0 spending, has been reallocated (which should not happen)
    Any idea of why is this happening? Thank you in advance
    Below the code
date_range <- c("2023-01-01", "2023-12-31")
select_model <- OutputCollectX$allSolutions
AllocatorCollect1 <- robyn_allocator( 
  InputCollect = InputCollectX,
  OutputCollect = OutputCollectX,
  select_model = select_model,
  date_range = date_range,
  total_budget = NULL,
  channel_constr_low = c(0.7, 0.7, 0.7, 0.7, 0.7, 1, 1, 1, 1, 1),
  channel_constr_up = c(1.3, 1.3, 1.3, 1.3, 1.3, 1, 1, 1, 1, 1),
  scenario = "max_response",
  export = create_files,
  plot_folder = RobynRecreated$plot_folder,
)

While running I have these warning messages as well:

Media variables with 0 spending during date range: 'Out_of_home', 'Television_rebrand'
Excluded variables (coefficients are 0): Out_of_home

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant