-
Notifications
You must be signed in to change notification settings - Fork 347
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
MMM Calibration #1034
Comments
If all the spending period was excluded from the training dataset then there's no spending data being used for that new channel, thus the coef will be zero. If you use all the available data, and also add the calibration input (calibration input is part of the training data), then it should have a larger impact than 0. |
thanks @laresbernardo for your response, I have a few follow-up questions regarding calibration: What should we typically expect from calibration in terms of impact on the model’s outputs? |
Hi @laresbernardo Currently we are not getting it ? |
Hi, n <- nrow(subset_df) group_assignment <- rep(c("test", "control"), length.out = n) set.seed(123) subset_df <- subset_df %>% average_sales <- subset_df %>% incremental_lift <- average_sales %>% total_test_spend <- subset_df %>% calibration_input <- data.frame( channel = c("spend_chanl_in"), liftEndDate = as.Date(c("2024-05-26")), # liftEndDate must be within input data range (in this case is the last week of data) spend = c(total_test_spend$total_spend ), calibration_scope = c("immediate") colnames(calibration_input)[colnames(calibration_input) == "incremental_lift"] <- "liftAbs" InputCollect <- robyn_inputs(InputCollect = InputCollect, calibration_input = calibration_input) OutputModels <- robyn_run( ) OutputCollect <- robyn_outputs( |
While training a model I encountered an issue during model calibration. We initially built a model using 2 years of data and then added synthetic spend data for a media channel over the recent 4 weeks. This channel had 0 contribution earlier, and after adding significant spend data for the last 4 weeks, it still showed 0 contribution.
To address this, we calibrated the model using incremental revenue and spends for the same 4-week period, but the channel continued to show 0 contribution. However, when we increased the training size, we started to see contribution for this media channel.
Could anyone share best practices or insights on how to effectively calibrate the model for recent periods?
@gufengzhou @laresbernardo
The text was updated successfully, but these errors were encountered: