I am trying the following:
model_lr <- lm(metrics$Rev_Per_Player~metrics$Promo + metrics$DoW)
DoW <- wday(c(2,3,4,5,6,7,1), label = TRUE)
Promo <- c("","A","","B", "A","B", "")
Players <- c(3000,4000,4000,5000,6000,6000,7000)
new_ds <- data.frame(Promo,DoW,Players)
predict(model_lr,newdata = new_ds[,1:2])
I end up getting this warning:
Warning message:
'newdata' had 7 rows but variables found have 182 rows
All the explanations I found for this problem have to do with inapropriately naming the new datasets' input features, which is something that I am accounting for already.