Movatterモバイル変換


[0]ホーム

URL:


Skip to contents

timetk for R

Making time series analysis in R easier.

Mission: To make time series analysis in R easier, faster, and more enjoyable.

Installation

Download the development version with latest features:

remotes::install_github("business-science/timetk")

Or, download CRAN approved version:

Package Functionality

There aremany R packages for working with Time Series data. Here’s howtimetk compares to the “tidy” time series R packages for data visualization, wrangling, and feature engineeering (those that leverage data frames or tibbles).

Tasktimetktsibblefeaststibbletime (retired)
Structure
Data Structuretibble (tbl)tsibble (tbl_ts)tsibble (tbl_ts)tibbletime (tbl_time)
Visualization
Interactive Plots (plotly)
Static Plots (ggplot)
Time Series
Correlation, Seasonality
Data Wrangling
Time-Based Summarization
Time-Based Filtering
Padding Gaps
Low to High Frequency
Imputation
Sliding / Rolling
Machine Learning
Time Series Machine Learning
Anomaly Detection
Clustering
Feature Engineering (recipes)
Date Feature Engineering
Holiday Feature Engineering
Fourier Series
Smoothing & Rolling
Padding
Imputation
Cross Validation (rsample)
Time Series Cross Validation
Time Series CV Plan Visualization
More Awesomeness
Making Time Series (Intelligently)
Handling Holidays & Weekends
Class Conversion
Automatic Frequency & Trend

Getting Started

Summary

Timetk is an amazing package that is part of themodeltime ecosystem for time series analysis and forecasting. The forecasting system is extensive, and it can take a long time to learn:

  • Many algorithms
  • Ensembling and Resampling
  • Machine Learning
  • Deep Learning
  • Scalable Modeling: 10,000+ time series

Your probably thinking how am I ever going to learn time series forecasting. Here’s the solution that will save you years of struggling.

Take the High-Performance Forecasting Course

Become the forecasting expert for your organization

High-Performance Time Series Forecasting Course

High-Performance Time Series Course

Time Series is Changing

Time series is changing.Businesses now need 10,000+ time series forecasts every day. This is what I call aHigh-Performance Time Series Forecasting System (HPTSF) - Accurate, Robust, and Scalable Forecasting.

High-Performance Forecasting Systems will save companies by improving accuracy and scalability. Imagine what will happen to your career if you can provide your organization a “High-Performance Time Series Forecasting System” (HPTSF System).

How to Learn High-Performance Time Series Forecasting

I teach how to build a HPTFS System in myHigh-Performance Time Series Forecasting Course. You will learn:

  • Time Series Machine Learning (cutting-edge) withModeltime - 30+ Models (Prophet, ARIMA, XGBoost, Random Forest, & many more)
  • Deep Learning withGluonTS (Competition Winners)
  • Time Series Preprocessing, Noise Reduction, & Anomaly Detection
  • Feature engineering using lagged variables & external regressors
  • Hyperparameter Tuning
  • Time series cross-validation
  • Ensembling Multiple Machine Learning & Univariate Modeling Techniques (Competition Winner)
  • Scalable Forecasting - Forecast 1000+ time series in parallel
  • and more.

Become the Time Series Expert for your organization.


Take the High-Performance Time Series Forecasting Course

Acknowledgements

Thetimetk package wouldn’t be possible without other amazing time series packages.

  • stats - Basically everytimetk function that uses a period (frequency) argument owes it tots().
  • lubridate:timetk makes heavy use offloor_date(),ceiling_date(), andduration() for “time-based phrases”.
    • Add and Subtract Time (%+time% &%-time%):"2012-01-01" %+time% "1 month 4 days" useslubridate to intelligently offset the day
  • xts: Used to calculate periodicity and fast lag automation.
  • forecast (retired): Possibly my favorite R package of all time. It’s based onts, and its predecessor is thetidyverts (fable,tsibble,feasts, andfabletools).
    • Thets_impute_vec() function for low-level vectorized imputation using STL + Linear Interpolation usesna.interp() under the hood.
    • Thets_clean_vec() function for low-level vectorized imputation using STL + Linear Interpolation usestsclean() under the hood.
    • Box Cox transformationauto_lambda() usesBoxCox.Lambda().
  • tibbletime (retired): Whiletimetk does not importtibbletime, it uses much of the innovative functionality to interpret time-based phrases:
  • slider: A powerful R package that provides apurrr-syntax for complex rolling (sliding) calculations.
  • padr: Used for padding time series from low frequency to high frequency and filling in gaps.
  • TSstudio: This is the best interactive time series visualization tool out there. It leverages thets system, which is the same system theforecast R package uses. A ton of inspiration for visuals came from usingTSstudio.

Links

License

  • GPL (>= 3)

Citation

Developers

  • Matt Dancho
    Author, maintainer
  • Davis Vaughan
    Author

Dev status

  • R-CMD-check
  • CRAN_Status_Badge
  • codecov

[8]ページ先頭

©2009-2025 Movatter.jp