#predicted values
pred
#standard error of predicted values
se
U=pred+1.96*se #upper Confidence interval 95% confidence interval is 1.96*stand error
L=pred-1.96*se #lower Confidence interval
mina=min(abc,L) #make sure the forecast confidence band within plot range;
maxa=max(abc,U)
ts.plot(abc,pred, ylim=c(mina,maxa)) #plot the original data and predicted values;
lines(U,col='green',lty= ...
#predicted values
pred
#standard error of predicted values
se
U=pred+1.96*se #upper Confidence interval 95% confidence interval is 1.96*stand error
L=pred-1.96*se #lower Confidence interval
mina=min(abc,L) #make sure the forecast confidence band within plot range;
maxa=max(abc,U)
ts.plot(abc,pred, ylim=c(mina,maxa)) #plot the original data and predicted values;
lines(U,col='green',lty='dashed') #plot the confidence band.
lines(L,col='green',lty='dashed')