Hi.
I have to forecast a time series of a Internet network traffic bitrate.
The data are in file
http://www.forumaltavilla.it/joomla/datitesi/dati.datand the sampling
time is every 0.05 seconds.
Now, i want to use HoltWinters forecasting. This is my script.

dt=1.58443823e-9 #0.05 seconds in years
dati.ts=ts(scan("dati.dat"),start=0,deltat=dt)
model=HoltWinters(dati.ts)
dati.forecast=forecast(model,h=100)
plot(dati.forecast)

When I type the command

model=HoltWinters(dati.ts)

R gives me the error
"Error in NextMethod("[") : cannot allocate vector of length 1262277040"

even if I take a shorter dati.dat (50 samples) i get the same error.

If i set deltat=1, the error after HoltWinters command is:
"Error in decompose(ts(x[1L:wind], start = start(x), frequency = f),
seasonal) :
  time series has no or less than 2 periods"

How can I solve my problem?
Thanks

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to