Task view: Time Series Analysis

Last updated on 2019-05-12 by Rob J Hyndman

Base R ships with a lot of functionality useful for time series, in particular in the stats package. This is complemented by many packages on CRAN, which are briefly summarized below. There is also a considerable overlap between the tools for time series and those in the Econometrics and Finance task views. The packages in this view can be roughly structured into the following topics. If you think that some package is missing from the list, please let us know.

Basics

  • Infrastructure: Base R contains substantial infrastructure for representing and analyzing time series data. The fundamental class is "ts" that can represent regularly spaced time series (using numeric time stamps). Hence, it is particularly well-suited for annual, monthly, quarterly data, etc.
  • Rolling statistics: Moving averages are computed by ma from forecast, and rollmean from zoo. The latter also provides a general function rollapply, along with other specific rolling statistics functions. tsibble provides slide() for rolling statistics, tile() for non-overlapping sliding windows, and stretch() for expanding windows. tbrf provides rolling functions based on date and time windows instead of n-lagged observations. roll provides parallel functions for computing rolling statistics. Fast rolling and expanding window regressions are provided by rollRegres. runstats provides fast computational methods for some running sample statistics.
  • Graphics: Time series plots are obtained with plot() applied to ts objects. (Partial) autocorrelation functions plots are implemented in acf() and pacf(). Alternative versions are provided by Acf() and Pacf() in forecast, along with a combination display using tsdisplay(). SDD provides more general serial dependence diagrams, while dCovTS computes and plots the distance covariance and correlation functions of time series. Seasonal displays are obtained using monthplot() in stats and seasonplot in forecast. Wats implements wrap-around time series graphics. Some facilities for ggplot2 graphics are provided in forecast including autoplot(), ggAcf(), ggPacf(), ggseasonplot() and ggsubseriesplot. ggseas provides additional ggplot2 graphics for seasonally adjusted series and rolling statistics. ggTimeSeries provides further visualizations including calendar heat maps, while calendar plots are implemented in sugrrants. dygraphs provides an interface to the Dygraphs interactive time series charting library. TSstudio provides some interactive visualization tools for time series. ZRA plots forecast objects from the forecast package using dygraphs. Basic fan plots of forecast distributions are provided by forecast and vars. More flexible fan plots of any sequential distributions are implemented in fanplot.

Times and Dates

  • Class "ts" can only deal with numeric time stamps, but many more classes are available for storing time/date information and computing with it. For an overview see R Help Desk: Date and Time Classes in R by Gabor Grothendieck and Thomas Petzoldt in R News 4(1), 29-32.
  • Classes "yearmon" and "yearqtr" from zoo allow for more convenient computation with monthly and quarterly observations, respectively.
  • Class "Date" from the base package is the basic class for dealing with dates in daily data. The dates are internally stored as the number of days since 1970-01-01.
  • The chron package provides classes for dates(), hours() and date/time (intra-day) in chron(). There is no support for time zones and daylight savings time. Internally, "chron" objects are (fractional) days since 1970-01-01.
  • Classes "POSIXct" and "POSIXlt" implement the POSIX standard for date/time (intra-day) information and also support time zones and daylight savings time. However, the time zone computations require some care and might be system-dependent. Internally, "POSIXct" objects are the number of seconds since 1970-01-01 00:00:00 GMT. Package lubridate provides functions that facilitate certain POSIX-based computations. timechange allows for efficient manipulation of date-times accounting for time zones and daylight saving times. wktmo converts weekly data to monthly data in several different ways.
  • Several packages aim to handle time-based tibbles: tsibble provides tidy temporal data frames and associated tools; tibbletime handles time aware tibbles; timetk contains tools for working with and coercing between time-based tibbles, xts, zoo and ts objects. tsbox is another toolkit for converting between various time series data classes.
  • Class "timeDate" is provided in the timeDate package (previously: fCalendar). It is aimed at financial time/date information and deals with time zones and daylight savings times via a new concept of "financial centers". Internally, it stores all information in "POSIXct" and does all computations in GMT only. Calendar functionality, e.g., including information about weekends and holidays for various stock exchanges, is also included.
  • The tis package provides the "ti" class for time/date information.
  • The "mondate" class from the mondate package facilitates computing with dates in terms of months.
  • The tempdisagg package includes methods for temporal disaggregation and interpolation of a low frequency time series to a higher frequency series.
  • Time series disaggregation is also provided by tsdisagg2.
  • TimeProjection extracts useful time components of a date object, such as day of week, weekend, holiday, day of month, etc, and put it in a data frame.

Time Series Classes

  • As mentioned above, "ts" is the basic class for regularly spaced time series using numeric time stamps.
  • The zoo package provides infrastructure for regularly and irregularly spaced time series using arbitrary classes for the time stamps (i.e., allowing all classes from the previous section). It is designed to be as consistent as possible with "ts". Coercion from and to "zoo" is available for all other classes mentioned in this section.
  • The package xts is based on zoo and provides uniform handling of R's different time-based data classes.
  • Various packages implement irregular time series based on "POSIXct" time stamps, intended especially for financial applications. These include "irts" from tseries, and "fts" from fts.
  • The class "timeSeries" in timeSeries (previously: fSeries) implements time series with "timeDate" time stamps.
  • The class "tis" in tis implements time series with "ti" time stamps.
  • The package tframe contains infrastructure for setting time frames in different formats.

Forecasting and Univariate Modeling

  • The forecast package provides a class and methods for univariate time series forecasts, and provides many functions implementing different forecasting models including all those in the stats package.
  • Exponential smoothing: HoltWinters() in stats provides some basic models with partial optimization, ets() from the forecast package provides a larger set of models and facilities with full optimization. robets provides a robust alternative to the ets() function. smooth implements some generalizations of exponential smoothing. The MAPA package combines exponential smoothing models at different levels of temporal aggregation to improve forecast accuracy. Some Bayesian extensions of exponential smoothing are contained in Rlgt.
  • prophet forecasts time series based on an additive model where nonlinear trends are fit with yearly and weekly seasonality, plus holidays. It works best with daily data.
  • The theta method is implemented in the thetaf function from the forecast package. An alternative and extended implementation is provided in forecTheta.
  • Autoregressive models: ar() in stats (with model selection) and FitAR for subset AR models.
  • ARIMA models: arima() in stats is the basic function for ARIMA, SARIMA, ARIMAX, and subset ARIMA models. It is enhanced in the forecast package via the function Arima() along with auto.arima() for automatic order selection. arma() in the tseries package provides different algorithms for ARMA and subset ARMA models. Other estimation methods including the innovations algorithm are provided by itsmr. FitARMA implements a fast MLE algorithm for ARMA models. Package gsarima contains functionality for Generalized SARIMA time series simulation. Robust ARIMA modeling is provided in the robustarima package. The mar1s package handles multiplicative AR(1) with seasonal processes. TSTutorial provides an interactive tutorial for Box-Jenkins modelling. Improved prediction intervals for ARIMA and structural time series models are provided by tsPI.
  • Periodic ARMA models: pear and partsm for periodic autoregressive time series models, and perARMA for periodic ARMA modelling and other procedures for periodic time series analysis.
  • ARFIMA models: Some facilities for fractional differenced ARFIMA models are provided in the fracdiff package. The arfima package has more advanced and general facilities for ARFIMA and ARIMA models, including dynamic regression (transfer function) models. LongMemoryTS provides a collection of functions for analysing long memory time series.
  • Transfer function models are provided by the arimax function in the TSA package, and the arfima function in the arfima package.
  • Outlier detection following the Chen-Liu approach is provided by tsoutliers. The tsoutliers and tsclean functions in the forecast package provide some simple heuristic methods for identifying and correcting outliers. anomalize provides some additional outlier detection methods in a tidy data framework. otsad implements a set of online anomaly detectors for time series.
  • Structural models are implemented in StructTS() in stats, and in stsm and stsm.class. KFKSDS provides a naive implementation of the Kalman filter and smoothers for univariate state space models. Bayesian structural time series models are implemented in bsts
  • Non-Gaussian time series can be handled with GLARMA state space models via glarma, and using Generalized Autoregressive Score models in the GAS package. Conditional Auto-Regression models using Monte Carlo Likelihood methods are implemented in mclcar. Efficient Bayesian inference for nonlinear and non-Gaussian state space models is provided in bssm.
  • GARCH models: garch() from tseries fits basic GARCH models. Many variations on GARCH models are provided by rugarch. Other univariate GARCH packages include fGarch which implements ARIMA models with a wide class of GARCH innovations. There are many more GARCH packages described in the Finance task view.
  • Stochastic volatility models are handled by stochvol in a Bayesian framework.
  • Count time series models are handled in the tscount and acp packages. ZIM provides for Zero-Inflated Models for count time series. tsintermittent implements various models for analysing and forecasting intermittent demand time series.
  • Censored time series can be modelled using cents and carx. ARCensReg fits univariate censored regression models with autoregressive errors.
  • Portmanteau tests are provided via Box.test() in the stats package. Additional tests are given by portes and WeightedPortTest.
  • Change point detection is provided in strucchange (using linear regression models), and in trend (using nonparametric tests). The changepoint package provides many popular changepoint methods, and ecp does nonparametric changepoint detection for univariate and multivariate series. changepoint.mv detects changepoints in multivariate time series. InspectChangepoint uses sparse projection to estimate changepoints in high-dimensional time series.
  • Tests for possibly non-monotonic trends are provided by funtimes.
  • Time series imputation is provided by the imputeTS package. Some more limited facilities are available using na.interp() from the forecast package. imputeTestbench provides tools for testing and comparing imputation methods. mtsdi implements an EM algorithm for imputing missing values in multivariate normal time series, accounting for spatial and temporal correlations.
  • Forecasts can be combined using ForecastComb which supports many forecast combination methods including simple, geometric and regression-based combinations. forecastHybrid provides functions for ensemble forecasts, combining approaches from the forecast package. opera has facilities for online predictions based on combinations of forecasts provided by the user. mafs fits several forecast models and selects the best one according to an error metric.
  • Forecast evaluation is provided in the accuracy() function from forecast. Distributional forecast evaluation using scoring rules is available in scoringRules. The Diebold-Mariano test for comparing the forecast accuracy of two models is implemented in the dm.test() function in forecast. A multivariate version of the Diebold-Mariano test is provided by multDM.
  • Tidy tools for forecasting are provided by sweep, converting objects produced in forecast to "tidy" data frames.
  • Miscellaneous: ltsa contains methods for linear time series analysis, timsac for time series analysis and control.

Frequency analysis

  • Spectral density estimation is provided by spectrum() in the stats package, including the periodogram, smoothed periodogram and AR estimates. Bayesian spectral inference is provided by bspec and regspec. quantspec includes methods to compute and plot Laplace periodograms for univariate time series. The Lomb-Scargle periodogram for unevenly sampled time series is computed by lomb. spectral uses Fourier and Hilbert transforms for spectral filtering. psd produces adaptive, sine-multitaper spectral density estimates. kza provides Kolmogorov-Zurbenko Adaptive Filters including break detection, spectral analysis, wavelets and KZ Fourier Transforms. multitaper also provides some multitaper spectral analysis tools.
  • Wavelet methods: The wavelets package includes computing wavelet filters, wavelet transforms and multiresolution analyses. Wavelet methods for time series analysis based on Percival and Walden (2000) are given in wmtsa. WaveletComp provides some tools for wavelet-based analysis of univariate and bivariate time series including cross-wavelets, phase-difference and significance tests. biwavelet is a port of the WTC Matlab package for univariate and bivariate wavelet analyses. Multivariate, locally stationary wavelet analysis tools are provided by mvLSW. Tests of white noise using wavelets are provided by hwwntest. Wavelet scalogram tools are contained in wavScalogram. Further wavelet methods can be found in the packages brainwaver, rwt, waveslim, wavethresh and mvcwt.
  • Harmonic regression using Fourier terms is implemented in HarmonicRegression. The forecast package also provides some simple harmonic regression facilities via the fourier function.

Decomposition and Filtering

  • Filters and smoothing: filter() in stats provides autoregressive and moving average linear filtering of multiple univariate time series. The robfilter package provides several robust time series filters. smooth() from the stats package computes Tukey's running median smoothers, 3RS3R, 3RSS, 3R, etc. sleekts computes the 4253H twice smoothing method. mFilter implements several filters for smoothing and extracting trend and cyclical components including Hodrick-Prescott and Butterworth filters.
  • Decomposition: Seasonal decomposition is discussed below. Autoregressive-based decomposition is provided by ArDec. tsdecomp implements ARIMA-based decomposition of quarterly and monthly data. rmaf uses a refined moving average filter for decomposition.
  • Singular Spectrum Analysis is implemented in Rssa, ASSA and spectral.methods.
  • Empirical Mode Decomposition (EMD) and Hilbert spectral analysis is provided by EMD. Additional tools, including ensemble EMD, are available in hht. An alternative implementation of ensemble EMD and its complete variant are available in Rlibeemd.

Seasonality

  • Seasonal decomposition: the stats package provides classical decomposition in decompose(), and STL decomposition in stl(). Enhanced STL decomposition is available in stlplus. stR provides Seasonal-Trend decomposition based on Regression.
  • X-13-ARIMA-SEATS binaries are provided in the x13binary package, with seasonal providing an R interface and seasonalview providing a GUI. An alternative interface is provided by x12, with an associated alternative GUI provided by x12GUI.
  • An interface to the JDemetra+ seasonal adjustment software is provided by RJDemetra. ggdemetra provides associated ggplot2 functions.
  • Seasonal adjustment of daily time series, allowing for day-of-week, time-of-month, time-of-year and holiday effects is provided by dsa.
  • Analysis of seasonality: the bfast package provides methods for detecting and characterizing abrupt changes within the trend and seasonal components obtained from a decomposition. npst provides a generalization of Hewitt's seasonality test.
  • season: Seasonal analysis of health data including regression models, time-stratified case-crossover, plotting functions and residual checks.
  • seas: Seasonal analysis and graphics, especially for climatology.
  • deseasonalize: Optimal deseasonalization for geophysical time series using AR fitting.

Stationarity, Unit Roots, and Cointegration

  • Stationarity and unit roots: tseries provides various stationarity and unit root tests including Augmented Dickey-Fuller, Phillips-Perron, and KPSS. Alternative implementations of the ADF and KPSS tests are in the urca package, which also includes further methods such as Elliott-Rothenberg-Stock, Schmidt-Phillips and Zivot-Andrews tests. uroot provides seasonal unit root tests. CADFtest provides implementations of both the standard ADF and a covariate-augmented ADF (CADF) test. MultipleBubbles tests for the existence of bubbles based on Phillips-Shi-Yu (2015).
  • Local stationarity: locits provides a test of local stationarity and computes the localized autocovariance. Time series costationarity determination is provided by costat. Locally stationary wavelet models for nonstationary time series are implemented in wavethresh (including estimation, plotting, and simulation functionality for time-varying spectra).
  • Cointegration: The Engle-Granger two-step method with the Phillips-Ouliaris cointegration test is implemented in tseries and urca. The latter additionally contains functionality for the Johansen trace and lambda-max tests. tsDyn provides Johansen's test and AIC/BIC simultaneous rank-lag selection. CommonTrend provides tools to extract and plot common trends from a cointegration system. Parameter estimation and inference in a cointegrating regression are implemented in cointReg. nardl estimates nonlinear cointegrating autoregressive distributed lag models.

Nonlinear Time Series Analysis

  • Nonlinear autoregression: Tools for nonlinear time series analysis are provided in NTS including threshold autoregressive models, Markov-switching models, convolutional functional autoregressive models, and nonlinearity tests. Various forms of nonlinear autoregression are available in tsDyn including additive AR, neural nets, SETAR and LSTAR models, threshold VAR and VECM. Neural network autoregression is also provided in GMDH. nnfor provides time series forecasting with neural networks. NlinTS includes neural network VAR, and a nonlinear version of the Granger causality test based on feedforward neural networks. bentcableAR implements Bent-Cable autoregression. BAYSTAR provides Bayesian analysis of threshold autoregressive models.
  • tseriesChaos provides an R implementation of the algorithms from the TISEAN project. DChaos provides several algorithms for detecting chaotic signals inside univariate time series.
  • Autoregression Markov switching models are provided in MSwM, while dependent mixtures of latent Markov models are given in depmix and depmixS4 for categorical and continuous time series.
  • Tests: Various tests for nonlinearity are provided in fNonlinear. tseriesEntropy tests for nonlinear serial dependence based on entropy metrics.
  • Additional functions for nonlinear time series are available in nlts and nonlinearTseries.
  • Fractal time series modeling and analysis is provided by fractal. fractalrock generates fractal time series with non-normal returns distributions.

Entropy

  • Shannon entropy based on the spectral density is computed using ForeCA.
  • RTransferEntropy measures information flow between time series with Shannon and Renyi transfer entropy.
  • An entropy measure based on the Bhattacharya-Hellinger-Matusita distance is implemented in tseriesEntropy.
  • Various approximate and sample entropies are computed using TSEntropies.

Dynamic Regression Models

  • Dynamic linear models: A convenient interface for fitting dynamic regression models via OLS is available in dynlm; an enhanced approach that also works with other regression functions and more time series classes is implemented in dyn. More advanced dynamic system equations can be fitted using dse. Gaussian linear state space models can be fitted using dlm (via maximum likelihood, Kalman filtering/smoothing and Bayesian methods), or using bsts which uses MCMC. dLagM provides time series regression with distributed lags. Functions for distributed lag nonlinear modelling are provided in dlnm. sym.arma will fit ARMA models with regressors where the observations follow a conditional symmetric distribution.
  • Time-varying parameter models can be fitted using the tpr package.
  • orderedLasso fits a sparse linear model with an order constraint on the coefficients in order to handle lagged regressors where the coefficients decay as the lag increases.

Multivariate Time Series Models

  • Vector autoregressive (VAR) models are provided via ar() in the basic stats package including order selection via the AIC. These models are restricted to be stationary. MTS is an all-purpose toolkit for analyzing multivariate time series including VAR, VARMA, seasonal VARMA, VAR models with exogenous variables, multivariate regression with time series errors, and much more. Possibly non-stationary VAR models are fitted in the mAr package, which also allows VAR models in principal component space. sparsevar allows estimation of sparse VAR and VECM models, bigtime estimates large sparse VAR, VARX and VARMA models, while BigVAR estimates VAR and VARX models with structured lasso penalties and svars implements data-driven structural VARs. Automated VAR models and networks are available in autovarCore. More elaborate models are provided in package vars, tsDyn, estVARXls() in dse. Another implementation with bootstrapped prediction intervals is given in VAR.etp. BVAR provides a toolkit for hierarchical Bayesian VAR models. mlVAR provides multi-level vector autoregression. VARsignR provides routines for identifying structural shocks in VAR models using sign restrictions. gmvarkit estimates Gaussian mixture VAR models. GNAR provides methods for fitting network AR models, while graphicalVAR estimates graphical VAR models. gdpc implements generalized dynamic principal components. pcdpca extends dynamic principal components to periodically correlated multivariate time series. onlineVAR implements online fitting of time-adaptive lasso VARs. mgm estimates time-varying mixed graphical models and mixed VAR models via regularized regression.
  • VARIMA models and state space models are provided in the dse package. EvalEst facilitates Monte Carlo experiments to evaluate the associated estimation methods.
  • Vector error correction models are available via the urca, ecm, vars, tsDyn packages, including versions with structural constraints and thresholding.
  • Time series component analysis: Time series factor analysis is provided in tsfa. ForeCA implements forecastable component analysis by searching for the best linear transformations that make a multivariate time series as forecastable as possible. PCA4TS finds a linear transformation of a multivariate time series giving lower-dimensional subseries that are uncorrelated with each other. One-sided dynamic principal components are computed in odpc. Frequency-domain-based dynamic PCA is implemented in freqdom.
  • Multivariate state space models An implementation is provided by the KFAS package which provides a fast multivariate Kalman filter, smoother, simulation smoother and forecasting. FKF provides a fast and flexible implementation of the Kalman filter, which can deal with missing values. Yet another implementation is given in the dlm package which also contains tools for converting other multivariate models into state space form. MARSS fits constrained and unconstrained multivariate autoregressive state-space models using an EM algorithm. All of these packages assume the observational and state error terms are uncorrelated.
  • Partially-observed Markov processes are a generalization of the usual linear multivariate state space models, allowing non-Gaussian and nonlinear models. These are implemented in the pomp package.
  • Multivariate stochastic volatility models (using latent factors) are provided by factorstochvol.

Analysis of large groups of time series

  • Time series features are computed from a list or matrix of time series using tsfeatures. Many built-in feature functions are included, and users can add their own.
  • Time series clustering is implemented in TSclust, dtwclust, BNPTSclust and pdc.
  • TSdist provides distance measures for time series data.
  • TSrepr includes methods for representing time series using dimension reduction and feature extraction.
  • jmotif implements tools based on time series symbolic discretization for finding motifs in time series and facilitates interpretable time series classification.
  • rucrdtw provides R bindings for functions from the UCR Suite to enable ultrafast subsequence search for a best match under Dynamic Time Warping and Euclidean Distance.
  • Methods for plotting and forecasting collections of hierarchical and grouped time series are provided by hts. thief uses hierarchical methods to reconcile forecasts of temporally aggregated time series. An alternative approach to reconciling forecasts of hierarchical time series is provided by gtop. thief

Functional time series

  • Tools for visualizing, modeling, forecasting and analysis of functional time series are implemented in ftsa.
  • freqdom.fda provides implements of dynamical functional principal components for functional time series.

Continuous time models

  • Continuous time autoregressive modelling is provided in cts, while carfima allows for continuous-time ARFIMA models.
  • Sim.DiffProc simulates and models stochastic differential equations.
  • Simulation and inference for stochastic differential equations is provided by sde and yuima.

Resampling

  • Bootstrapping: The boot package provides function tsboot() for time series bootstrapping, including block bootstrap with several variants. tsbootstrap() from tseries provides fast stationary and block bootstrapping. Maximum entropy bootstrap for time series is available in meboot. timesboot computes the bootstrap CI for the sample ACF and periodogram. BootPR computes bias-corrected forecasting and bootstrap prediction intervals for autoregressive time series.

Time Series Data

  • Data from Cryer and Chan (2010, 2nd ed) Time series analysis with applications in R are in the TSA package.
  • Data from Hyndman and Athanasopoulos (2013) Forecasting: principles and practice are in the fpp package.
  • Data from Hyndman and Athanasopoulos (2018, 2nd ed) Forecasting: principles and practice are in the fpp2 package.
  • Data from Hyndman, Koehler, Ord and Snyder (2008) Forecasting with exponential smoothing are in the expsmooth package.
  • Data from Makridakis, Wheelwright and Hyndman (1998, 3rd ed) Forecasting: methods and applications are in the fma package.
  • Data from Shumway and Stoffer (2017, 4th ed) Time Series Analysis and Its Applications: With R Examples are in the astsa package.
  • Data from Tsay (2005, 2nd ed) Analysis of Financial Time Series are in the FinTS package.
  • Data from Woodward, Gray, and Elliott (2016, 2nd ed) Applied Time Series Analysis with R are in the tswge package.
  • AER and Ecdat both contain many data sets (including time series data) from many econometrics text books
  • Data from the M-competition and M3-competition are provided in the Mcomp package. Tcomp provides data from the 2010 IJF Tourism Forecasting Competition.
  • BETS provides access to the most important economic time series in Brazil.
  • Data from Switzerland via dataseries.org can be downloaded and imported using dataseries.
  • fame provides an interface for FAME time series databases
  • influxdbr provides an interface to the InfluxDB time series database.
  • pdfetch provides facilities for downloading economic and financial time series from public sources.
  • Data from the Quandl online portal to financial, economical and social datasets can be queried interactively using the Quandl package.
  • TSdbi provides a common interface to time series databases.

Miscellaneous

  • dtw: Dynamic time warping algorithms for computing and plotting pairwise alignments between time series.
  • ensembleBMA: Bayesian Model Averaging to create probabilistic forecasts from ensemble forecasts and weather observations.
  • earlywarnings: Early warnings signals toolbox for detecting critical transitions in time series
  • events: turns machine-extracted event data into regular aggregated multivariate time series.
  • FeedbackTS: Analysis of fragmented time directionality to investigate feedback in time series.
  • imputePSF: imputes missing data using pattern sequences.
  • LPStimeSeries aims to find "learned pattern similarity" for time series.
  • nets: routines for the estimation of sparse long run partial correlation networks for time series data.
  • paleoTS: Modeling evolution in paleontological time series.
  • pastecs: Regulation, decomposition and analysis of space-time series.
  • PSF: Forecasting univariate time series using pattern-sequences.
  • ptw: Parametric time warping.
  • RGENERATE provides tools to generate vector time series.
  • RMAWGEN is set of S3 and S4 functions for spatial multi-site stochastic generation of daily time-series of temperature and precipitation making use of VAR models. The package can be used in climatology and statistical hydrology.
  • RSEIS: Seismic time series analysis tools.
  • rts: Raster time series analysis (e.g., time series of satellite images).
  • sae2: Time series models for small area estimation.
  • spTimer: Spatio-temporal Bayesian modelling.
  • surveillance: Temporal and spatio-temporal modeling and monitoring of epidemic phenomena.
  • TED: Turbulence time series Event Detection and classification.
  • Tides: Functions to calculate characteristics of quasi periodic time series, e.g. observed estuarine water levels.
  • tiger: Temporally resolved groups of typical differences (errors) between two time series are determined and visualized.
  • tsfknn: Time series forecasting with k-nearest-neighbours.
  • TSMining: Mining Univariate and Multivariate Motifs in Time-Series Data.
  • tsModel: Time series modeling for air pollution and health.

Packages

acp — 2.1

Autoregressive Conditional Poisson

AER — 1.2-6

Applied Econometrics with R

anomalize — 0.1.1

Tidy Anomaly Detection

ARCensReg — 2.1

Fitting Univariate Censored Linear Regression Model with Autoregressive Errors

ArDec — 2.0

Time series autoregressive-based decomposition

arfima — 1.7-0

Fractional ARIMA (and Other Long Memory) Time Series Modeling

ASSA — 1.0

Applied Singular Spectrum Analysis (ASSA)

astsa — 1.9

Applied Statistical Time Series Analysis

autovarCore — 1.0-4

Automated Vector Autoregression Models and Networks

BAYSTAR — 0.2-9

On Bayesian analysis of Threshold autoregressive model (BAYSTAR)

bentcableAR — 0.3.0

Bent-Cable Regression for Independent Data or Autoregressive Time Series

BETS — 0.4.9

Brazilian Economic Time Series

bfast — 1.5.7

Breaks For Additive Season and Trend (BFAST)

bigtime — 0.1.0

Sparse Estimation of Large Time Series Models

BigVAR — 1.0.4

Dimension Reduction Methods for Multivariate Time Series

biwavelet — 0.20.17

Conduct Univariate and Bivariate Wavelet Analyses

BNPTSclust — 1.1

A Bayesian Nonparametric Algorithm for Time Series Clustering

boot — 1.3-22

Bootstrap Functions (Originally by Angelo Canty for S)

BootPR — 0.60

Bootstrap Prediction Intervals and Bias-Corrected Forecasting

brainwaver — 1.6

Basic wavelet analysis of multivariate time series with a visualisation and parametrisation using graph theory.

bspec — 1.5

Bayesian Spectral Inference

bssm — 0.1.7

Bayesian Inference of Non-Linear and Non-Gaussian State Space Models

bsts — 0.9.1

Bayesian Structural Time Series

BVAR — 0.1.3

Hierarchical Bayesian Vector Autoregression

CADFtest — 0.3-3

A Package to Perform Covariate Augmented Dickey-Fuller Unit Root Tests

carfima — 2.0.1

Continuous-Time Fractionally Integrated ARMA Process for Irregularly Spaced Long-Memory Time Series Data

carx — 0.7.1

Censored Autoregressive Model with Exogenous Covariates

cents — 0.1-41

Censored time series

changepoint.mv — 1.0.1

Changepoint Analysis for Multivariate Time Series

changepoint — 2.2.2

Methods for Changepoint Detection

chron — 2.3-53

Chronological Objects which can Handle Dates and Times

cointReg — 0.2.0

Parameter Estimation and Inference in a Cointegrating Regression

CommonTrend — 0.7-1

Extract and plot common trends from a cointegration system. Calculate P-value for Johansen Statistics.

costat — 2.4

Time Series Costationarity Determination

cts — 1.0-22

Continuous Time Autoregressive Models

dataseries — 0.2.0

Switzerland's Data Series in One Place

DChaos — 0.1-2

Chaotic Time Series Analysis

dCovTS — 1.1

Distance Covariance and Correlation for Time Series Analysis

depmix — 0.9.15

Dependent Mixture Models

depmixS4 — 1.3-5

Dependent Mixture Models - Hidden Markov Models of GLMs and Other Distributions in S4

deseasonalize — 1.35

Optimal deseasonalization for geophysical time series using AR fitting

dLagM — 1.0.12

Time Series Regression Models with Distributed Lag Models

dlm — 1.1-5

Bayesian and Likelihood Analysis of Dynamic Linear Models

dlnm — 2.3.9

Distributed Lag Non-Linear Models

dsa — 0.70.3

Seasonal Adjustment of Daily Time Series

dse — 2015.12-1

Dynamic Systems Estimation (Time Series Package)

dtw — 1.20-1

Dynamic Time Warping Algorithms

dtwclust — 5.5.2

Time Series Clustering Along with Optimizations for the Dynamic Time Warping Distance

dygraphs — 1.1.1.6

Interface to 'Dygraphs' Interactive Time Series Charting Library

dyn — 0.2-9.6

Time Series Regression

dynlm — 0.3-6

Dynamic Linear Regression

earlywarnings — 1.0.59

Early Warning Signals Toolbox for Detecting Critical Transitions in Timeseries

Ecdat — 0.3-1

Data Sets for Econometrics

ecm — 4.4.0

Build Error Correction Models

ecp — 3.1.1

Non-Parametric Multiple Change-Point Analysis of Multivariate Data

EMD — 1.5.8

Empirical Mode Decomposition and Hilbert Spectral Analysis

ensembleBMA — 5.1.5

Probabilistic Forecasting using Ensembles and Bayesian Model Averaging

EvalEst — 2015.4-2

Dynamic Systems Estimation - Extensions

events — 0.5

Store and manipulate event data

expsmooth — 2.3

Data Sets from "Forecasting with Exponential Smoothing"

factorstochvol — 0.9

Bayesian Estimation of (Sparse) Latent Factor Stochastic Volatility Models

fame — 2.21

Interface for FAME Time Series Database

fanplot — 3.4.1

Visualisation of Sequential Probability Distributions Using Fan Charts

FeedbackTS — 1.4

Analysis of Feedback in Time Series

fGarch — 3042.83.1

Rmetrics - Autoregressive Conditional Heteroskedastic Modelling

FinTS — 0.4-6

Companion to Tsay (2005) Analysis of Financial Time Series

FitAR — 1.94

Subset AR Model Fitting

FitARMA — 1.6.1

Fit ARMA or ARIMA Using Fast MLE Algorithm

FKF — 0.1.5

Fast Kalman Filter

fma — 2.3

Data Sets from "Forecasting: Methods and Applications" by Makridakis, Wheelwright & Hyndman (1998)

fNonlinear — 3042.79

Rmetrics - Nonlinear and Chaotic Time Series Modelling

ForeCA — 0.2.4

Forecastable Component Analysis

forecast — 8.7

Forecasting Functions for Time Series and Linear Models

ForecastComb — 1.3.1

Forecast Combination Methods

forecastHybrid — 4.2.17

Convenient Functions for Ensemble Time Series Forecasts

forecTheta — 2.2

Forecasting Time Series by Theta Models

fpp2 — 2.3

Data for "Forecasting: Principles and Practice" (2nd Edition)

fpp — 0.5

Data for "Forecasting: principles and practice"

fracdiff — 1.4-2

Fractionally differenced ARIMA aka ARFIMA(p,d,q) models

fractal — 2.0-4

A Fractal Time Series Modeling and Analysis Package

fractalrock — 1.1.0

Generate fractal time series with non-normal returns distribution

freqdom.fda — 0.9.1

Functional Time Series: Dynamic Functional Principal Components

freqdom — 2.0.1

Frequency Domain Based Analysis: Dynamic PCA

fts — 0.9.9.2

R Interface to 'tslib' (a Time Series Library in C++)

ftsa — 5.5

Functional Time Series Analysis

funtimes — 6.1

Functions for Time Series Analysis

GAS — 0.3.0

Generalized Autoregressive Score Models

gdpc — 1.1.0

Generalized Dynamic Principal Components

ggdemetra — 0.1.0

'ggplot2' Extension for Seasonal and Trading Day Adjustment with 'RJDemetra'

ggseas — 0.5.4

'stats' for Seasonal Adjustment on the Fly with 'ggplot2'

ggTimeSeries — 1.0.1

Time Series Visualisations Using the Grammar of Graphics

glarma — 1.6-0

Generalized Linear Autoregressive Moving Average Models

GMDH — 1.6

Short Term Forecasting via GMDH-Type Neural Network Algorithms

gmvarkit — 1.0.3

Estimate Gaussian Mixture Vector Autoregressive Model

GNAR — 0.3.6

Methods for Fitting Network Time Series Models

graphicalVAR — 0.2.2

Graphical VAR for Experience Sampling Data

gsarima — 0.1-4

Two functions for Generalized SARIMA time series simulation

gtop — 0.2.0

Game-Theoretically OPtimal (GTOP) Reconciliation Method

HarmonicRegression — 1.0

Harmonic Regression to One or more Time Series

hht — 2.1.3

The Hilbert-Huang Transform: Tools and Methods

hts — 5.1.5

Hierarchical and Grouped Time Series

hwwntest — 1.3.1

Tests of White Noise using Wavelets

imputePSF — 0.1.0

Impute Missing Data in Time Series Data with PSF Based Method

imputeTestbench — 3.0.2

Test Bench for the Comparison of Imputation Methods

imputeTS — 2.7

Time Series Missing Value Imputation

influxdbr — 0.14.2

R Interface to InfluxDB

InspectChangepoint — 1.0.1

High-Dimensional Changepoint Estimation via Sparse Projection

itsmr — 1.9

Time Series Analysis Using the Innovations Algorithm

jmotif — 1.0.3

Time Series Analysis Toolkit Based on Symbolic Aggregate Dicretization, i.e. SAX

KFAS — 1.3.7

Kalman Filter and Smoother for Exponential Family State Space Models

KFKSDS — 1.6

Kalman Filter, Smoother and Disturbance Smoother

kza — 4.1.0

Kolmogorov-Zurbenko Adaptive Filters

locits — 1.7.3

Test of Stationarity and Localized Autocovariance

lomb — 1.1

Lomb-Scargle Periodogram

LongMemoryTS — 0.1.0

Long Memory Time Series

LPStimeSeries — 1.0-5

Learned Pattern Similarity and Representation for Time Series

ltsa — 1.4.6

Linear Time Series Analysis

lubridate — 1.7.4

Make Dealing with Dates a Little Easier

mafs — 0.0.3

Multiple Automatic Forecast Selection

MAPA — 2.0.4

Multiple Aggregation Prediction Algorithm

mar1s — 2.1.1

Multiplicative AR(1) with Seasonal Processes

mAr — 1.1-2

Multivariate AutoRegressive analysis

MARSS — 3.10.10

Multivariate Autoregressive State-Space Modeling

mclcar — 0.1-9

Estimating Conditional Auto-Regressive (CAR) Models using Monte Carlo Likelihood Methods

Mcomp — 2.8

Data from the M-Competitions

meboot — 1.4-7

Maximum Entropy Bootstrap for Time Series

mFilter — 0.1-5

Miscellaneous Time Series Filters

mgm — 1.2-6

Estimating Time-Varying k-Order Mixed Graphical Models

mlVAR — 0.4.2

Multi-Level Vector Autoregression

mondate — 0.10.01.02

Keep track of dates in terms of months

MSwM — 1.4

Fitting Markov Switching Models

MTS — 1.0

All-Purpose Toolkit for Analyzing Multivariate Time Series (MTS) and Estimating Multivariate Volatility Models

mtsdi — 0.3.5

Multivariate Time Series Data Imputation

multDM — 1.0

Multivariate Version of the Diebold-Mariano Test

MultipleBubbles — 0.2.0

Test and Detection of Explosive Behaviors for Time Series

multitaper — 1.0-14

Spectral Analysis Tools using the Multitaper Method

mvcwt — 1.3.1

Wavelet Analysis of Multiple Time Series

mvLSW — 1.2.2

Multivariate, Locally Stationary Wavelet Process Estimation

nardl — 0.1.5

Nonlinear Cointegrating Autoregressive Distributed Lag Model

nets — 0.9

Network Estimation for Time Series

NlinTS — 1.3.7

Non Linear Time Series Analysis

nlts — 1.0-2

Nonlinear Time Series Analysis

nnfor — 0.9.6

Time Series Forecasting with Neural Networks

nonlinearTseries — 0.2.6

Nonlinear Time Series Analysis

npst — 2.0

Generalization of Hewitt's Seasonality Test

NTS — 1.0.0

Nonlinear Time Series Analysis

odpc — 2.0.1

One-Sided Dynamic Principal Components

onlineVAR — 0.1-1

Online Fitting of Time-Adaptive Lasso Vector Auto Regression

opera — 1.0

Online Prediction by Expert Aggregation

orderedLasso — 1.7.1

Ordered Lasso and Time-Lag Sparse Regression

otsad — 0.1.0

Online Time Series Anomaly Detectors

paleoTS — 0.5.2

Analyze Paleontological Time-Series

partsm — 1.1-2

Periodic Autoregressive Time Series Models

pastecs — 1.3.21

Package for Analysis of Space-Time Ecological Series

PCA4TS — 0.1

Segmenting Multiple Time Series by Contemporaneous Linear Transformation

pcdpca — 0.4

Dynamic Principal Components for Periodically Correlated Functional Time Series

pdc — 1.0.3

Permutation Distribution Clustering

pdfetch — 0.2.3

Fetch Economic and Financial Time Series Data from Public Sources

pear — 1.2

Package for Periodic Autoregression Analysis

perARMA — 1.6

Periodic Time Series Analysis

pomp — 2.1

Statistical Inference for Partially Observed Markov Processes

portes — 3.0

Portmanteau Tests for Univariate and Multivariate Time. Series Models

prophet — 0.5

Automatic Forecasting Procedure

psd — 1.2.0

Adaptive, Sine-Multitaper Power Spectral Density Estimation

PSF — 0.4

Forecasting of Univariate Time Series Using the Pattern Sequence-Based Forecasting (PSF) Algorithm

ptw — 1.9-13

Parametric Time Warping

Quandl — 2.10.0

API Wrapper for Quandl.com

quantspec — 1.2-1

Quantile-Based Spectral Analysis of Time Series

regspec — 2.4

Non-Parametric Bayesian Spectrum Estimation for Multirate Data

RGENERATE — 1.3.5

Tools to Generate Vector Time Series

RJDemetra — 0.1.2

Interface to 'JDemetra+' Seasonal Adjustment Software

Rlgt — 0.1-2

Bayesian Exponential Smoothing Models with Trend Modifications

Rlibeemd — 1.4.1

Ensemble Empirical Mode Decomposition (EEMD) and Its Complete Variant (CEEMDAN)

rmaf — 3.0.1

Refined Moving Average Filter

RMAWGEN — 1.3.3

Multi-Site Auto-Regressive Weather GENerator

robets — 1.4

Forecasting Time Series with Robust Exponential Smoothing

robfilter — 4.1.1

Robust Time Series Filters

robustarima — 0.2.5

Robust ARIMA Modeling

roll — 1.1.2

Rolling Statistics

rollRegres — 0.1.2

Fast Rolling and Expanding Window Linear Regression

RSEIS — 3.8-3

Seismic Time Series Analysis Tools

Rssa — 1.0

A Collection of Methods for Singular Spectrum Analysis

RTransferEntropy — 0.2.8

Measuring Information Flow Between Time Series with Shannon and Renyi Transfer Entropy

rts — 1.0-49

Raster Time Series Analysis

rucrdtw — 0.1.3

R Bindings for the UCR Suite

rugarch — 1.4-1

Univariate GARCH Models

runstats — 1.0.1

Fast Computation of Running Statistics for Time Series

rwt — 1.0.0

Rice Wavelet Toolbox wrapper

sae2 — 0.1-1

Small Area Estimation: Time-series Models

scoringRules — 0.9.6

Scoring Rules for Parametric and Simulated Distribution Forecasts

SDD — 1.2

Serial Dependence Diagrams

sde — 2.0.15

Simulation and Inference for Stochastic Differential Equations

seas — 0.5-2

Seasonal Analysis and Graphics, Especially for Climatology

season — 0.3.8

Seasonal Analysis of Health Data

seasonal — 1.7.0

R Interface to X-13-ARIMA-SEATS

seasonalview — 0.3

Graphical User Interface for Seasonal Adjustment

Sim.DiffProc — 4.4

Simulation of Diffusion Processes

sleekts — 1.0.2

4253H, Twice Smoothing

smooth — 2.5.0

Forecasting Using State Space Models

sparsevar — 0.0.10

A Package for Sparse VAR/VECM Estimation

spectral.methods — 0.7.2.133

Singular Spectrum Analysis (SSA) Tools for Time Series Analysis

spectral — 1.3

Common Methods of Spectral Data Analysis

spTimer — 3.3

Spatio-Temporal Bayesian Modelling

stlplus — 0.5.1

Enhanced Seasonal Decomposition of Time Series by Loess

stochvol — 2.0.3

Efficient Bayesian Inference for Stochastic Volatility (SV) Models

stR — 0.4

STR Decomposition

strucchange — 1.5-1

Testing, Monitoring, and Dating Structural Changes

stsm.class — 1.3

Class and Methods for Structural Time Series Models

stsm — 1.9

Structural Time Series Models

sugrrants — 0.2.4

Supporting Graphs for Analysing Time Series

surveillance — 1.17.0

Temporal and Spatio-Temporal Modeling and Monitoring of Epidemic Phenomena

svars — 1.2.2

Data-Driven Identification of SVAR Models

sweep — 0.2.1.1

Tidy Tools for Forecasting

sym.arma — 1.0

Autoregressive and Moving Average Symmetric Models

tbrf — 0.1.2

Time-Based Rolling Functions

Tcomp — 1.0.1

Data from the 2010 Tourism Forecasting Competition

TED — 1.1.1

Turbulence Time Series Event Detection and Classification

tempdisagg — 0.25.0

Methods for Temporal Disaggregation and Interpolation of Time Series

tframe — 2015.12-1.1

Time Frame Coding Kernel

thief — 0.3

Temporal Hierarchical Forecasting

tibbletime — 0.1.2

Time Aware Tibbles

Tides — 2.1

Quasi-Periodic Time Series Characteristics

tiger — 0.2.3.1

TIme series of Grouped ERrors

timechange — 0.0.1

Efficient Changing of Date-Times

timeDate — 3043.102

Rmetrics - Chronological and Calendar Objects

TimeProjection — 0.2.0

Time Projections

timesboot — 1.0

Bootstrap computations for time series objects

timeSeries — 3042.102

Rmetrics - Financial Time Series Objects

timetk — 0.1.1.1

A Tool Kit for Working with Time Series in R

timsac — 1.3.6

Time Series Analysis and Control Package

tis — 1.37.1

Time Indexes and Time Indexed Series

tpr — 0.3-1.2

Temporal Process Regression

trend — 1.1.1

Non-Parametric Trend Tests and Change-Point Detection

TSA — 1.2

Time Series Analysis

tsbox — 0.1.0

Class-Agnostic Time Series

TSclust — 1.2.4

Time Series Clustering Utilities

tscount — 1.4.1

Analysis of Count Time Series

TSdbi — 2017.4-1

Time Series Database Interface

tsdecomp — 0.2

Decomposition of Time Series Data

tsdisagg2 — 0.1.0

Time Series Disaggregation

TSdist — 3.5

Distance Measures for Time Series Data

tsDyn — 0.9-48.1

Nonlinear Time Series Models with Regime Switching

tseries — 0.10-47

Time Series Analysis and Computational Finance

TSEntropies — 0.9

Time Series Entropies

tseriesChaos — 0.1-13.1

Analysis of Nonlinear Time Series

tseriesEntropy — 0.6-0

Entropy Based Analysis and Tests for Time Series

tsfa — 2014.10-1

Time Series Factor Analysis

tsfeatures — 1.0.1

Time Series Feature Extraction

tsfknn — 0.3.0

Time Series Forecasting Using Nearest Neighbors

tsibble — 0.8.2

Tidy Temporal Data Frames and Tools

tsintermittent — 1.9

Intermittent Time Series Forecasting

TSMining — 1.0

Mining Univariate and Multivariate Motifs in Time-Series Data

tsModel — 0.6

Time Series Modeling for Air Pollution and Health

tsoutliers — 0.6-8

Detection of Outliers in Time Series

tsPI — 1.0.2

Improved Prediction Intervals for ARIMA Processes and Structural Time Series

TSrepr — 1.0.2

Time Series Representations

TSstudio — 0.1.4

Functions for Time Series Analysis and Forecasting

TSTutorial — 1.2.3

Fitting and Predict Time Series Interactive Laboratory

tswge — 1.0.0

Applied Time Series Analysis

urca — 1.3-0

Unit Root and Cointegration Tests for Time Series Data

uroot — 2.0-9.1

Unit Root Tests for Seasonal Time Series

VAR.etp — 0.7

VAR modelling: estimation, testing, and prediction

vars — 1.5-3

VAR Modelling

VARsignR — 0.1.3

Sign Restrictions, Bayesian, Vector Autoregression Models

Wats — 0.10.3

Wrap Around Time Series Graphics

WaveletComp — 1.1

Computational Wavelet Analysis

wavelets — 0.3-0.1

Functions for Computing Wavelet Filters, Wavelet Transforms and Multiresolution Analyses

waveslim — 1.7.5.1

Basic Wavelet Routines for One-, Two- And Three-Dimensional Signal Processing

wavethresh — 4.6.8

Wavelets Statistics and Transforms

wavScalogram — 0.1.0

Wavelet Scalogram Tools for Time Series Analysis

WeightedPortTest — 1.0

Weighted Portmanteau Tests for Time Series Goodness-of-fit

wktmo — 1.0.5

Converting Weekly Data to Monthly Data

wmtsa — 2.0-3

Wavelet Methods for Time Series Analysis

x12 — 1.9.0

Interface to 'X12-ARIMA'/'X13-ARIMA-SEATS' and Structure for Batch Processing of Seasonal Adjustment

x12GUI — 0.13.0

X12 - Graphical User Interface

x13binary — 1.1.39-2

Provide the 'x13ashtml' Seasonal Adjustment Binary

xts — 0.11-2

eXtensible Time Series

yuima — 1.8.1

The YUIMA Project Package for SDEs

ZIM — 1.1.0

Zero-Inflated Models (ZIM) for Count Time Series with Excess Zeros

ZRA — 0.2

Dynamic Plots for Time Series Forecasting

zoo — 1.8-5

S3 Infrastructure for Regular and Irregular Time Series (Z's Ordered Observations)


Task view list