I am doing harmonic prediction in R and prediction did not work. I have data for 186 months and I want to do prediction for next three months. My code for harmonic regression:
t<-1:186
t2<-t*t
sez<-lm(exhangeRate~t+t2+cost+sint)
And then I am doing prediction:
timeR<-(1:189)*0.05
predik<-predict(sez, list(t=timeR, t2=timeR*timeR))
predik
But it is not working, predik has still 186 values, not 189. Any help?