M4: M4 Competition data

Description Usage Format Note Source References Examples

Description

Featuring 100000 time series from different domains

The 100000 time series from the M4-competition (https://www.m4.unic.ac.cy/)

Usage

1

Format

M4 is a list of 100000 series. Each series within M4 is an object with the following structure:

st

Series number and period. For example "Y1" denotes first yearly series, "Q20" denotes 20th quarterly series and so on.

n

The number of observations in the time series

h

The number of required forecasts

period

Interval of the time series. Possible values are "Yearly", "Quarterly", "Monthly", "Weekly", "Daily" & "Hourly".

type

The type of series. Possible values are "Demographic", "Finance", "Industry", "Macro", "Micro" & "Other".

x

A time series of length n (the historical data)

xx

A time series of length h (the future data)

Note

Series start is provided in year format for Yearly, Monthly and Quarterly series. For Daily and Hourly series, it is given in the number of days after 1970-01-01 and for Weekly data it is given in number of weeks since 1970-01-01.

Source

M4 Competition Dataset

References

(M4 Competition Web)

Examples

1
2
3
4
data(M4)
names(M4[[1]])
#extract yearly series
yearly_M4 <- Filter(function(l) l$period == "Yearly", M4)

thiyangt/M4comp2018 documentation built on May 14, 2019, 12:48 p.m.