Skip to content
GRATIS: GeneRAting TIme Series with diverse and controllable characteristics
R
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
inst/shiny
man
.Rbuildignore
.gitignore
DESCRIPTION use tsfeatures on CRAN Nov 13, 2019
LICENSE
NAMESPACE
README.md

README.md

gratis

The R package gratis (previously known as tsgeneration) provides efficient algorithms for generating time series with diverse and controllable characteristics.

Installation

You can install the development version of gratis package from GitHub Repository with:

devtools::install_github("ykang/gratis")

Usage

Load the package

require("gratis")

Generate diverse time series

x <- generate_ts(n.ts = 2, freq = 12, nComp = 2, n = 120)
x$N1$pars
autoplot(x$N1$x)

Generate mutiple seasonal time series

x <- generate_msts(seasonal.periods = c(7, 365), n = 800, nComp = 2)
autoplot(x)

Generate time series with controllable features

x <- generate_ts_with_target(n = 1, ts.length = 60, freq = 1, seasonal = 0,
                             features = c('entropy', 'stl_features'),
                             selected.features = c('entropy', 'trend'),
                             target = c(0.6, 0.9))
autoplot(x)

Web application

You could run the time series generation procedure in a web application

app_gratis()

Or visit our online Shiny APP

See also

References

  • Kang, Y., Hyndman, R., and Li, F. (2018). GRATIS: GeneRAting TIme Series with diverse and controllable characteristics. Working paper on arXiv.

License

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

Acknowledgements

Feng Li and Yanfei Kang are supported by the National Natural Science Foundation of China (No. 11501587 and No. 11701022 respectively). Rob J Hyndman is supported by the Australian Centre of Excellence in Mathematical and Statistical Frontiers.

You can’t perform that action at this time.