I am new to predictive analytics and this is the first time i am participating in hackathon.
I am trying to predict on my test dataset with following command
predtest <- predict(logmodel,newdata = test,type=“response”)
and i am getting error :- Error in model.frame.default(Terms, newdata, na.action = na.action, xlev = object$xlevels) :
factor Loan_ID has new levels.
What is the reason behind it and how to resolve it ?