I have a timeseries with hourly gas consumptions of some buildings. I need to forecast them with ARIMA and R, but I'm not an expert of R.
I tried to see if there are periodicities during one week.
Source:
fmt <- '%Y-%m-%d %H:%M:%S'
dat <- read.zoo('740.csv', format=fmt, header=TRUE, sep=',', tz='GMT', stringsAsFactors=FALSE)
#suppress warning of duplicates index in zoo
dat.ts <- dat2$gas..m3.[duplicated(index(dat2$gas..m3.)) == FALSE]
dat.ts <- as.xts(dat2.ts)
eats.week <- dat.ts["2008-02-04::2008-02-08"]
fit <- stl(eats.week, s.window="periodic")
Head:
2008-02-04 00:00:00 53
2008-02-04 01:00:00 54
2008-02-04 02:00:00 55
2008-02-04 03:00:00 53
2008-02-04 04:00:00 54
2008-02-04 05:00:00 53
2008-02-04 06:00:00 66
2008-02-04 07:00:00 55
2008-02-04 08:00:00 112
2008-02-04 09:00:00 54
2008-02-04 10:00:00 113
2008-02-04 11:00:00 55
2008-02-04 12:00:00 108
2008-02-04 13:00:00 55
2008-02-04 14:00:00 101
2008-02-04 15:00:00 54
2008-02-04 16:00:00 99
2008-02-04 17:00:00 57
2008-02-04 18:00:00 92
2008-02-04 19:00:00 65
Why isn't it periodic? Do I need to specify the frequency? (How in case?)