Displaying 2 results from an estimated 2 matches for "fmonth".
Did you mean:
month
2007 Dec 16
2
question about the aggregate function with respect to order of levels of grouping elements
...nths(df[,1])),sum)
levels(agg$month) # aggregate() automatically generates levels sorted by
alphabet.
[1] "Apr" "Aug" "Dec" "Feb" "Jan" "Jul" "Jun" "Mar" "May" "Nov" "Oct" "Sep"
fmonth=factor(months(df[,1]))
levels(fmonth) # factor() automatically generates the correct order of
levels.
[1] "Jan" "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug" "Sep" "Oct" "Nov" "Dec"...
2010 Jan 18
5
errors appears in my time Series regression fomula
...rs 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)
> yfit1=ymod1$fitted
> lines(yfit1,c=3)
??? plot.xy(xy.coords(x, y), type = type, ...) :
??3?????????????
Also, for a similar data set quarterly sales of spirits series, what is the best model to use?? Should I use A...