TSPred
TSPred Package for R : Framework for Nonstationary Time Series Prediction
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: ieee.org, acm.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.3%) to scientific vocabulary
Keywords
Repository
TSPred Package for R : Framework for Nonstationary Time Series Prediction
Basic Info
Statistics
- Stars: 25
- Watchers: 6
- Forks: 8
- Open Issues: 1
- Releases: 0
Topics
Metadata Files
README.md
TSPred Package for R : Framework for Nonstationary Time Series Prediction
Current Version: 5.1 Date: 2021-01
Authors: Rebecca Pontes Salles (rebeccapsalles@acm.org) and Eduardo Ogasawara (eogasawara@ieee.org)
Description: Functions for defining and conducting a time series prediction process including pre(post)processing, decomposition, modeling, prediction, and accuracy assessment. The generated models and their yielded prediction errors can be used for benchmarking other time series prediction methods and for creating a demand for the refinement of such methods. For this purpose, benchmark data from prediction competitions may be used.
Available at CRAN: https://CRAN.R-project.org/package=TSPred
Reference manual: TSPred.pdf
Acknowledgements: The authors thank CNPq, CAPES, and FAPERJ for partially sponsoring this research.
Usage:
```r
Install TSPred package
install.packages("TSPred")
Load TSPred package
library("TSPred") ```
ARIMA model prediction application using TSPred
```r
loading CATS dataset
data("CATS")
defining the time series application
tspredarima <- tspred( subsetting = subsetting(testlen = 20), modeling = ARIMA(), evaluating = list(MSE = MSE(),AIC = AIC()) )
performing the prediction application and obtaining results
tspredarimares <- workflow( tspred_arima, data = CATS[5] ) ```
Definition of components/steps of a time series prediction process in TSPred
```r
Obtaining objects of the processing class
procsubset <- subsetting( testlen = 20 ) procbct <- BCT() procwt <- WT( level = 1, filter = "bl14" ) procsw <- SW( windowlen = 6 ) proc_mm <- MinMax()
Obtaining objects of the modeling class
modlnnet <- NNET( size = 5, sw = procsw, proc = list(MM = proc_mm) )
Obtaining objects of the evaluating class
eval_mse <- MSE() ```
MLM prediction application using TSPred
```r
Defining a time series prediction process
tspredmlm <- tspred( subsetting = procsubset, processing = list(BCT = procbct, WT = procwt), modeling = modlnnet, evaluating = list(MSE = evalmse) )
Running the time series prediction process and obtaining results
tspredmlmres <- tspredmlm %>% subset(data = CATS[5]) %>% preprocess(preptest = TRUE) %>% train() %>% predict(inputtestdata = TRUE) %>% postprocess() %>% evaluate()
Benchmarking tspred objects
bmrkresults <- benchmark( tspredarimares, list(tspredmlm_res) ) ```
A user-defined MLM using TSPred
```r
Subclass my.model
my.model <- function(trainpar=NULL, predpar=NULL){ MLM(trainfunc = my.model.func, trainpar = c(trainpar), predfunc = my.model.pred.func, predpar = c(predpar), method = "Name of my model", subclass = "my.model" ) }
Obtaining an instance of the subclass my.model
model <- my.model(trainpar = list(par1="a", par2="b"), predpar = list(par3="c")) ```
Other relevant functions:
Nonstationarity treatment:
- LogT - Logarithmic transform.
- BCT - Box-Cox transform.
- an - Adaptive normalization.
- Diff - Differencing. MAS
- mas - Moving average smoothing.
- pct - Percentage change transform.
- WaveletT - Wavelet transform.
- emd - Empirical mode decomposition. #### Fittest linear models:
- fittestLM - Automatically finding fittest linear model for prediction.
- fittestArima - Automatic ARIMA fitting, prediction and accuracy evaluation.
- fittestArimaKF - Automatic ARIMA fitting and prediction with Kalman filter.
- fittestPolyR - Automatic fitting and prediction of polynomial regression.
- fittestPolyRKF - Automatic fitting and prediction of polynomial regression with Kalman filter. #### Automatic preprocessing/decomposition and prediction:
- fittestMAS - Automatic prediction with moving average smoothing.
- fittestWavelet - Automatic prediction with wavelet transform.
- fittestEMD - Automatic prediction with empirical mode decomposition.
Owner
- Name: Rebecca Pontes Salles
- Login: RebeccaSalles
- Kind: user
- Repositories: 2
- Profile: https://github.com/RebeccaSalles
GitHub Events
Total
- Watch event: 1
- Push event: 1
Last Year
- Watch event: 1
- Push event: 1
Committers
Last synced: about 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Rebecca Pontes Salles | r****s@g****m | 154 |
| Eduardo Ogasawara | e****a@e****r | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 1
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 1
- Total pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- Lesaffrea (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 804 last-month
- Total dependent packages: 2
- Total dependent repositories: 1
- Total versions: 9
- Total maintainers: 1
cran.r-project.org: TSPred
Functions for Benchmarking Time Series Prediction
- Homepage: https://github.com/RebeccaSalles/TSPred/wiki
- Documentation: http://cran.r-project.org/web/packages/TSPred/TSPred.pdf
- License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
-
Latest release: 5.1.1
published 9 months ago
Rankings
Maintainers (1)
Dependencies
- R >= 3.5.0 depends
- EMD * imports
- KFAS * imports
- ModelMetrics * imports
- MuMIn * imports
- RSNNS * imports
- Rlibeemd * imports
- dplyr * imports
- e1071 * imports
- elmNNRcpp * imports
- forecast * imports
- keras * imports
- magrittr * imports
- methods * imports
- nnet * imports
- plyr * imports
- randomForest * imports
- stats * imports
- tfdatasets * imports
- vars * imports
- wavelets * imports