Open skonduri-sreeja opened 3 months ago
Robyn only accepts factorial variables within context_vars. If you want to have "event", "defects", "fraud", "outage" as factors, you need to do context_vars = c( "A", "B", "C", "event", "defects", "fraud", "outage"), then factor_vars = c("event", "defects", "fraud", "outage").
Project Robyn
Describe issue
Error in check_factorvars(dt_input, factor_vars, context_vars) : Input 'factor_vars' must be any from 'context_vars' inputs
Provide reproducible example
context_vars = c( "A", "B", "C")
factor_vars = c("event", "defects", "fraud", "outage")
this is part of the MMM code and used to run before and now there is an error. There are no null values in dataset
Environment & Robyn version
Make sure you're using the latest Robyn version before you post an issue.
packageVersion("Robyn")
sessionInfo()
orR.version$version.string
)