Trying to replicate robyn_allocator results with robyn_response #934
Unanswered
elijahstevensonatfanduel
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
For a curve I get a robyn_allocator tells me initResponseUnit of 3.836 and a initSpendUnit of 1655.2 for a 91 day period (349 total response in period, $150,620 spend in period).
When plugging in the same model, curve, period into robyn_response I get the sum(robyn_response$response_total) of 420. I'm seeing discrepancies across all curves.
So my question is how to recreate the dependent variable results from robyn_allocator with robyn_response?
robyn_allocator code:
AllocatorCollect2 <- robyn_allocator( InputCollect = RobynRecreated$InputCollect, OutputCollect = RobynRecreated$OutputCollect, select_model = model_id, date_range = c(optimizer_start, optimizer_end), total_budget = total_budget, scenario = "max_response", channel_constr_low = low_constraint_vector, channel_constr_up = up_constraint_vector, optim_algo="SLSQP_AUGLAG", channel_constr_multiplier=1 )robyn_response code:
response_r = robyn_response( InputCollect = RobynRecreated$InputCollect, OutputCollect = RobynRecreated$OutputCollect, select_model = model_id, metric_name = metric_to_test, metric_value = 150620.726042, date_range = c(optimizer_start, optimizer_end) )Beta Was this translation helpful? Give feedback.
All reactions