[R] Directional Forecast

2017-08-11 Thread Sumanta Basak
I've some demand data, for which I wish to judge what will be the direction in the forecast period (Up/Down). What will be a best ML method to do this? Currently I'm using the data given below - 9/4/2016 241 9/11/2016 233 9/18/2016 226 9/25/2016 282 10/2/2016 291 10/9/2016 282 10/16/2016 308 10/23

[R] Help on reducing multiple loops

2017-05-17 Thread Sumanta Basak
a,data_merge_final,by.x= c("P_KEY", "Active_Prod_Id"),by.y = c("P_KEY", "prod"),all.x=TRUE) names(Final_data)[names(Final_data) == "weight"] <- "Proficiency_Score" emerging_prod_mapping <- readRDS("5.Emerg