On running a gam model using the mgcv package, I encountered a strange error message which I am unable to understand:
“Error in model.frame.default(fo
Another thing that can cause this error is creating a model with the centering/scaling standardize function from the arm package -- m <- standardize(lm(y ~ x, data = train))
m <- standardize(lm(y ~ x, data = train))
If you then try predict(m), you get the same error as in this question.
predict(m)