I am doing a negative binomial regression:
m1 <- glm.nb(Trip ~ Origin + Destination + Distance, data)
I then wanted to get the predicted values to compare with the actual values
PredictTrip <- predict(m1)
My question is, I read on several websites that the predicted values need to be exponentiated because it is in log form. However, if I exponentiate the predicted values, it becomes ridiculously large (i.e. E+20, or even Infinity). If I did not exponentiate it, the values are close and comparable to the actual values. Which one is right? Thanks.