Skip to content
Prev 332513 / 398506 Next

forecast.lm() and NEWDATA

On Nov 1, 2013, at 6:50 AM, Ryan wrote:

            
This looks wrong. Separating independent predictors with commas would be highly unusual.
This also looks wrong. Separating arguments to data.frame with "+"-signs is surely wrong.
If your code prior to calling forecast on the REGGY-object was really what you showed here, I am not surprised. You should post the output of str() on the data-objects that has the 12 variables and if it was modified the data argument pasted to `lm()` when you made REGGY. (Beginners should name their data arguments.)
Not if what you posted here was your code. I think you missed a few crucials points about R syntax.