facebookexperimental / facebookexperimental/Robyn

Why is Competitor Sales a Positive Contribution?

オープン
#1,073 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Jupyter Notebook
スター
1.5k
フォーク
433
PR マージ指標
30日以内にマージされた PR はありません

説明

## Project Robyn

## Describe issue
I am running the demo and see that in the response decomposition waterfall by predictor, competitor sales is the largest contribution. Why would competitor sales be the largest contribution, shouldn't it be negative?

## Provide reproducible example
This is the input directly from the demo:
InputCollect <- robyn_inputs(
dt_input = dt_simulated_weekly,
dt_holidays = dt_prophet_holidays,
date_var = "DATE", # date format must be "2020-01-01"
dep_var = "revenue", # there should be only one dependent variable
dep_var_type = "revenue", # "revenue" (ROI) or "conversion" (CPA)
prophet_vars = c("trend", "season", "holiday"), # "trend","season", "weekday" & "holiday"
prophet_country = "DE", # input country code. Check: dt_prophet_holidays
context_vars = c("competitor_sales_B", "events"), # e.g. competitors, discount, unemployment etc
paid_media_spends = c("tv_S", "ooh_S", "print_S", "facebook_S", "search_S"), # mandatory input
paid_media_vars = c("tv_S", "ooh_S", "print_S", "facebook_I", "search_clicks_P"), # mandatory.
organic_vars = "newsletter", # marketing activity without media spend
window_start = "2016-01-01",
window_end = "2018-12-31",
adstock = "geometric" # geometric, weibull_cdf or weibull_pdf.
)
print(InputCollect)
![Screenshot 2024-10-10 at 5 17 05 PM](https://github.com/user-attachments/assets/6bcd6716-98db-4c38-b78f-dd7a253c4991)

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。