[R] how to find best model of time series?giving error
Berend Hasselman
bhh at xs4all.nl
Wed Mar 14 11:01:27 CET 2012
On 14-03-2012, at 07:22, sagarnikam123 wrote:
> yes but giving error
>> t<-read.table(file.choose())
>> t<-ts(t)
>> plot(t)
> Hit <Return> to see next plot:
>> ht<-HoltWinters(t)
> Error in decompose(ts(x[1L:wind], start = start(x), frequency = f),
> seasonal) :
> time series has no or less than 2 periods
>
> what should i do?
Read HoltWinters help thoroughly.
Your timeseries should have a frequency > 1.
So how about t <- ts(t, start=??, frequency=4)
Berend
More information about the R-help
mailing list