Univariate Time Series Forecasting

An engine for univariate time series forecasting using different regression models in an autoregressive way. The engine provides an uniform interface for applying the different models. Furthermore, it is extensible so that users can easily apply their own regression models to univariate time series forecasting and benefit from all the features of the engine, such as preprocessings or estimation of forecast accuracy.


utsf

R-CMD-check

The utsf package provides an engine for univariate time series forecasting using different regression models in an autoregressive way. The engine provides an uniform interface for applying the different models. Furthermore, it is extensible so that users can easily apply their own regression models to univariate time series forecasting and benefit from all the features of the engine, such as preprocessings or estimation of forecast accuracy.

Installation

You can install the development version of utsf from GitHub with:

# install.packages("pak")
pak::pak("franciscomartinezdelrio/utsf")

or you can install the stable version from CRAN:

install.packages("utsf")

Example

This is a basic example which shows you how to solve a common problem:

library(utsf)
# Forecast the next 12 future values of time series UKDriverDeaths using random forest
m <- create_model(UKDriverDeaths, method = "rf")
f <- forecast(m, h = 12)
f$pred # to see the forecast
#>           Jan      Feb      Mar      Apr      May      Jun      Jul      Aug
#> 1985 1299.725 1215.264 1227.347 1170.516 1261.783 1263.307 1325.378 1346.959
#>           Sep      Oct      Nov      Dec
#> 1985 1412.481 1543.708 1698.649 1805.963
library(ggplot2)
autoplot(f)

If you are interested in this package you can read its vignette where all its important features are described.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("utsf")

1.3.4 by Francisco Martinez, 2 months ago


https://github.com/franciscomartinezdelrio/utsf


Report a bug at https://github.com/franciscomartinezdelrio/utsf/issues


Browse source code at https://github.com/cran/utsf


Authors: Maria Pilar Frias-Bustamante [aut] (ORCID: , Francisco Martinez [aut, cre, cph] (ORCID:


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports Cubist, FNN, forecast, generics, ggplot2, ipred, methods, ranger, rpart, vctsfr, xgboost

Suggests knitr, nnet, randomForest, rmarkdown, testthat


See at CRAN