Robyn is an experimental, AI/ML-powered and open sourced Marketing Mix Modeling (MMM) package from Meta Marketing Science. Our mission is to democratise modeling knowledge, inspire the industry through innovation, reduce human bias in the modeling process & build a strong open source marketing science community.
The above code works fine if
date_range <- "last_91"
However, it produces an error if
date_range <- c("2023-01-01", "2023-04-01"),
Running budget allocator for model ID 2_285_1 ...
Date Window: 2023-01-01:2023-04-01 (91 days)
Error in if (date_range == "all") { : the condition has length > 1
Calls: main -> optimize -> robyn_allocator -> which_usecase
In addition: There were 20 warnings (use warnings() to see them)
Execution halted
Provide reproducible example
Environment & Robyn version
Make sure you're using the latest Robyn version before you post an issue.
Check and share Robyn version: packageVersion("Robyn")
‘3.10.3’
R version (Please, check and share: sessionInfo() or R.version$version.string)
4.3.1 (2023-06-16)
Project Robyn
Describe issue
Robyn allocator doesn't accept vector format of the date_range.
The above code works fine if date_range <- "last_91"
However, it produces an error if
date_range <- c("2023-01-01", "2023-04-01"),
Provide reproducible example
Environment & Robyn version
Make sure you're using the latest Robyn version before you post an issue.
packageVersion("Robyn")
‘3.10.3’sessionInfo()
orR.version$version.string
) 4.3.1 (2023-06-16)