Giter Site home page Giter Site logo

m4's Introduction

M4

Data and stuff for M4 competition

The data is located in data folder and can be loaded via:

load("data/M4.Rdata")

This will load M4 object, which is the list of length 100,000. It is of a class "Mcomp" and has the same structure as M3:

  • M4[[12345]] is the list with specific values for a time series N12345
  • M4[[12345]]$x is the actual values for the in-sample
  • M4[[12345]]$xx is the holdout (last h observations)
  • M4[[12345]]$h is the forecasting horizon
  • M4[[12345]]$n is the length of the series
  • M4[[12345]]$st is the name of series. e.g. "Y12345"
  • M4[[12345]]$sn is the serial number of series. e.g. "N12345"
  • M4[[12345]]$period is the seasonality type of data ("YEARLY", "QUARTERLY" etc).
  • M4[[12345]]$type is the type of data ("INDUSTRIAL", "MICRO" etc)

The frequency of data can be accessed via frequency(M4[[12345]]$x)

Have a look at the general structure by typing:

library(Mcomp) M4

All the methods for M3 work in case of M4 out of the box:

plot(M4[[12345]])

smooth functions can be applied directly:

library(smooth)

es(M4[[12345]], silent=F)

If you need a specific subset (e.g. quarterly data), you can use subset() function from Mcomp package:

M4Q <- subset(M4, "QUARTERLY")

Types of data:

  1. YEARLY;
  2. QUARTERLY;
  3. MONTHLY;
  4. WEEKLY;
  5. DAILY;
  6. HOURLY

m4's People

Contributors

config-i1 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

chenx2018

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.