facebookexperimental / Robyn

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.
https://facebookexperimental.github.io/Robyn/
MIT License
1.13k stars 334 forks source link

Don't appear vec_collect build from xDecompVecImmCarr in v3.10.3 #848

Open caarolinagil opened 11 months ago

caarolinagil commented 11 months ago

Project Robyn

Describe issue

Hi,

Recently, I have upgraded from version 3.9.0 to version 3.10.3 and have seen changes.

Until now, to separate the carryover vs immediate effects and to be able to represent them, I used the table coming from OutputModels$trial$resultCollect$xDecompVec, but in the results extracted from the model with version 3.10.3 I don't have this option and I don't know how to get this decomposition out.

Provide reproducible example

I've tried this extracted to script pareto.R but I get a tibble 0x0:

To recreate "xDecompVec", "xDecompVecImmediate", "xDecompVecCarryover" for each model temp <- OutputModels[names(OutputModels) %in% paste0("trial", 1:OutputModels$trials)] xDecompVecImmCarr <- bindrows(lapply(temp, function(x) x$resultCollect$xDecompVec)) if (!"solID" %in% colnames(xDecompVecImmCarr)) { xDecompVecImmCarr <- xDecompVecImmCarr %>% mutate(solID = paste(.data$trial, .data$iterNG, .data$iterPar, sep = "")) %>% filter(.data$solID %in% uniqueSol) }

Environment & Robyn version

Make sure you're using the latest Robyn version before you post an issue.

gufengzhou commented 11 months ago

Hey, we've deprecated that table in the object because it's getting very large and causing many problem when users are having larger datasets and/or running more iterations. The new onepager actually provide the aggregated immediate vs carryover plot. is it sufficient for you?

caarolinagil commented 11 months ago

Thank you for your esponse.

Actually, my question is if it is necessary to visualize the immediate vs carryover by dates or better the aggregated data as we have it in the new one pager. Also, I would like to know what adstock transformation would be best to use to reflect the impact of channels that focus on awareness campaigns?