Time Series in R: Notes

Personal notes from when I was investigating how to analyze time series with the R language.
Author
Published

May 28, 2021

These are references that I followed while investigating how to analyze time series with the R language.

Review of pre-tidyverse libraries

Abraham Mathew. 2019-08-18. Packages for Getting Started with Time Series Analysis in R. Blog post.

  • Provides a brief survey of R libraries used for time series before tidyverse development became popular.
  • ts vs xts for representing time series data.
  • dynlm for comparing regressors at different times. usage documentation.
  • forecast for time series forecasting.

Time series libraries compatible with the tidyverse

Rob Hyndman: R libraries

Related presentations:

Related blog posts:

Matt Dancho: R libraries

  • timetk: A Tool Kit for Working with Time Series in R.
    • data wrangling
    • visualization
    • feature engineering
  • modeltime: The Tidymodels Extension for Time Series Modeling.
    • fast experimentation with many software models.

Facebook: prophet package

  • Prophet: Forecasting at scale. home page.
  • prophet package: Automatic Forecasting Procedure.
    • “Implements a procedure for forecasting time series data based on an additive model where non-linear trends are fit with yearly, weekly, and daily seasonality, plus holiday effects. It works best with time series that have strong seasonal effects and several seasons of historical data. Prophet is robust to missing data and shifts in the trend, and typically handles outliers well.”
  • Prophet Quick Start. documentation.
  • Sean J. Taylor, Ben Letham. 2017-02-23. Prophet: forecasting at scale. Blog post.
  • Time series forecasting with Prophet. Coursera Guided Project. 1-hour project.

Twitter: AnomalyDetection

Google: CausalImpact package

Online Courses

Free Courses

Coursera: Intro to Time Series Analysis in R

Vinod Bakthavachalam. Intro to Time Series Analysis in R. Coursera Guided Project.

  • Introduction to basic terminology for time series.
  • Shows how to build several types of models and then forecast with them: AR(p), MA(q), ARMA(p,q), ARIMA(p,d,q), STL.
  • Relies mostly on the forecast package, including forecast::auto.arima to create models.
  • The syllabus says it is a 2-hour project-based course. However it took me twice that long, because I stopped to look up terms and experimented with sample code.

SUNY Online: Practical Time Series Analysis

Tural Sadigov, William Thistleton. Practical Time Series Analysis. 6-week course.

  • “If you are on the job and all of a sudden you have to look at time series data, and your mathematical background did not include a study of time series or stochastic processes, this course will help give you a nice overview, a very practical approach to where time series come from and how people manage them.”

Coursera: Time series forecasting with Prophet

Time series forecasting with Prophet. Coursera Guided Project. 1-hour project.

Georgia Institute of Technology: Introduction to Analytics Modeling

Introduction to Analytics Modeling. Free online course at edX. Week 3 covers “Time Series Models”.

R Books

Python Books


Copyright © 2021 Jim Tyhurst
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.