Displaying 1 result from an estimated 1 matches for "math355".
2010 Jan 18
5
errors appears in my time Series regression fomula
...the following r code, and there is an error appeared at the end. The data files was enclosed in the email.
I'm sorry the errors message appeared in chinese, but it says "plot.xy(xy.coords(x, y), type = type, ...) :
errors in argument has more than 3 matches"
> y=scan('F:/Math355/AIRLINE.txt',skip=2,nlines=18)
Read 144 items
> yts=ts(log(y))
> plot(yts,main="LOG AIRLINE TOTALS",type='p',col=2)
> n=length(y)
> time=seq(1:n)
>
> month=c(rep(seq(1:12),12))
> fmonth=as.factor(month)
> ymod1=lm(yts~time+fmonth)
> summary(ymod1)...