GithubHelp home page GithubHelp logo

sarkaraj / forecast Goto Github PK

View Code? Open in Web Editor NEW

This project forked from robjhyndman/forecast

0.0 2.0 0.0 19.46 MB

forecast package for R

Home Page: http://pkg.robjhyndman.com/forecast

Makefile 0.09% R 91.29% C++ 5.48% C 3.14%

forecast's Introduction

forecast

Travis-CI Build Status CRAN_Status_Badge Downloads Licence

The R package forecast provides methods and tools for displaying and analysing univariate time series forecasts including exponential smoothing via state space models and automatic ARIMA modelling.

Installation

You can install the stable version from CRAN.

install.packages('forecast', dependencies = TRUE)

You can install the development version from Github

# install.packages("devtools")
devtools::install_github("robjhyndman/forecast")

Usage

library(forecast)
library(ggplot2)

# ETS forecasts
USAccDeaths %>%
  ets %>%
  forecast %>%
  autoplot

# Automatic ARIMA forecasts
WWWusage %>%
  auto.arima %>%
  forecast(h=20) %>%
  autoplot

# ARFIMA forecasts
library(fracdiff)
x <- fracdiff.sim( 100, ma=-.4, d=.3)$series
arfima(x) %>%
  forecast(h=30) %>%
  autoplot

# Forecasting with STL
USAccDeaths %>%
  stlm(modelfunction=ar) %>%
  forecast(h=36) %>%
  autoplot

AirPassengers %>%
  stlf(lambda=0) %>%
  autoplot

USAccDeaths %>%
  stl(s.window='periodic') %>%
  forecast %>%
  autoplot

# TBATS forecasts
USAccDeaths %>%
  tbats %>%
  forecast %>%
  autoplot

taylor %>%
  tbats %>%
  forecast %>%
  autoplot

For more information

License

This package is free and open source software, licensed under GPL-3.

forecast's People

Contributors

robjhyndman avatar mitchelloharawild avatar gabrielcaceres avatar dashaub avatar earowang avatar violetelegy avatar cbergmeir avatar terrytangyuan avatar dareid avatar saurav-chakravorty avatar zachmayer avatar doug-friedman avatar ethanwhite avatar elray1 avatar frankportman avatar mungojam avatar jseabold avatar royalts avatar carloscinelli avatar hudcap avatar oleds avatar

Watchers

James Cloos avatar Rajarshi Sarkar avatar

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.