Skip to content

Commit

Permalink
version 4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Svetunkov authored and cran-robot committed Apr 2, 2024
1 parent 2787213 commit 9ac843f
Show file tree
Hide file tree
Showing 41 changed files with 1,181 additions and 939 deletions.
15 changes: 8 additions & 7 deletions DESCRIPTION
@@ -1,9 +1,9 @@
Package: smooth
Type: Package
Title: Forecasting Using State Space Models
Version: 4.0.0
Date: 2023-09-15
Authors@R: person("Ivan", "Svetunkov", email = "ivan@svetunkov.ru", role = c("aut", "cre"),
Version: 4.0.1
Date: 2024-04-01
Authors@R: person("Ivan", "Svetunkov", email = "ivan@svetunkov.com", role = c("aut", "cre"),
comment="Lecturer at Centre for Marketing Analytics and Forecasting, Lancaster University, UK")
URL: https://github.com/config-i1/smooth
BugReports: https://github.com/config-i1/smooth/issues
Expand All @@ -24,12 +24,13 @@ LinkingTo: Rcpp, RcppArmadillo (>= 0.8.100.0.0)
Suggests: legion, numDeriv, testthat, knitr, rmarkdown, doMC,
doParallel, foreach
VignetteBuilder: knitr
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
Encoding: UTF-8
ByteCompile: true
NeedsCompilation: yes
Packaged: 2023-09-16 10:17:15 UTC; config
Packaged: 2024-04-01 12:18:10 UTC; config
Author: Ivan Svetunkov [aut, cre] (Lecturer at Centre for Marketing Analytics
and Forecasting, Lancaster University, UK)
Maintainer: Ivan Svetunkov <ivan@svetunkov.ru>
Maintainer: Ivan Svetunkov <ivan@svetunkov.com>
Repository: CRAN
Date/Publication: 2023-09-17 04:30:02 UTC
Date/Publication: 2024-04-01 14:50:02 UTC
80 changes: 40 additions & 40 deletions MD5
@@ -1,27 +1,27 @@
562a117839a15d4b76c9a72bd4199bc2 *DESCRIPTION
0bf119877847d6f1b4a492b15a8bec8b *NAMESPACE
8b800fde5a3d1e48d658e84d31624bca *NEWS
a62d3797825f0e330012fda89473841e *R/RcppExports.R
f8253fb8ef049a6f3f36b6a7819df39e *R/adam-es.R
2da1918be2b69e50feb86328eab97eab *DESCRIPTION
42b45b14e084f26970802fa88d5cc755 *NAMESPACE
b011be1b5b1ae15a33f9d3a24f3d4e96 *NEWS
c4f084103fc8811ad410766f8daf6a68 *R/RcppExports.R
8c77efb65c43d7da9489ce779ebeff26 *R/adam-es.R
d60cfdfb03976caff6dc64f456a6010f *R/adam-msarima.R
9cb07e267c7fbb4ddf8d604d452bc62c *R/adam-sma.R
c0a099f465b7abefa7288243cbece238 *R/adam.R
f864c13a06b19c4c3e814a85e64a4fc3 *R/adamGeneral.R
cabd98681834a7c73496b4f06814a519 *R/autoadam.R
d3c9adb9d9f228937db1ec85f455091f *R/adam-sma.R
ab3645eef479521e300f3f11772e81b5 *R/adam.R
10a48fa3a3cf301df1ea369be10ce4ed *R/adamGeneral.R
58b00ac1350d2aab05de6543992342e6 *R/autoadam.R
ea95a9439e93ea7f2c0a22d5f536d635 *R/autoces.R
84ec09fab0c7a9340ce8f6dcf187f67a *R/autogum.R
1584b3c2373f6233ef491536629162b1 *R/automsarima.R
bdde374481cc3eb7d58511ad9577e8d4 *R/autossarima.R
e6ca2c1c9ac18dd169459e06f84124e7 *R/ces.R
5e24a3f832ff393e00e43326c63c80fd *R/cma.R
838d9351ac2d631487532bc9a069e937 *R/cma.R
dee51918bf1e69babdd6156d6b0dabb8 *R/depricator.R
178fb5186ef072c0d2eb6b943557708c *R/es.R
644b36637f40ce1332d934f1eec16add *R/gum.R
81f2d289eeb2ed694f29227b9103fe51 *R/isFunctions.R
041d01baa73ad0ec1dad2547505e8678 *R/iss.R
bcd2007e8736b16f79ab5b685f74fa56 *R/methods.R
804079c011b151b646eb9d6e9a4051d6 *R/msarima.R
49540534fa230cd869497488b7357b88 *R/msdecompose.R
23d204616f0a6f3192c3f7bd83ab6de2 *R/msdecompose.R
279568641df34ca6f82a0c668e938ea2 *R/oes.R
63910e171affdc1a6988603a95025638 *R/oesg.R
5e17f699c228ba9941f1043825a7d604 *R/randomARIMA.R
Expand All @@ -33,57 +33,57 @@ a26210beaf498241d089d307cb553e10 *R/simgum.R
2af7ae71a16d99aa03960cfb8b54bd28 *R/simssarima.R
e6b80264b69b331f69c361c08720bca1 *R/sm.R
7fb01d6c2094b9b693aca573e60ff4f0 *R/sma.R
9a19d731523b676605bf6bbfa871af8b *R/smooth-package.R
2f369063fb706fc8473e00868d9e6f25 *R/smooth-package.R
1f6a8a5773a65ae3990a9e6178415ed3 *R/smoothCombine.R
c2d9138e7acfbb6ce34906896b820b7e *R/sowhat.R
5a0d49de5494b56c7034175851c4535c *R/ssarima.R
eb54820d225d371b94dfcfc3eb3c57bd *R/ssfunctions.R
f24826d22eba6d731300f952efdc6db5 *R/variance-covariance.R
ab5988fe4671de0c01accffc7485a8c5 *R/zzz.R
e8405c90e8f2c8fe2ee501e851b26896 *README.md
7080893e02c49cd296d4424b9be55069 *build/partial.rdb
25a319928b6b47d06069d3656daa8ba0 *build/vignette.rds
20c8d3f97d93e2e318a22508275b5a02 *build/partial.rdb
9a683111b71fed68236000e2cf165a0c *build/vignette.rds
3474f00ebaee8436de9e09211e7130fa *inst/doc/adam.R
82c0124eeb40d5843fdd130c233b8cf1 *inst/doc/adam.Rmd
b2fbc1676210cbcb4c121d176d3f6802 *inst/doc/adam.html
c3833b503b83053020876613d9d1846f *inst/doc/adam.html
b9e5f76276b38ed63ec627214c59c650 *inst/doc/ces.R
82ba0016e79b233c075aee7fd2f1e703 *inst/doc/ces.Rmd
8e8207849b01e7e86b17aeac2cfba1cb *inst/doc/ces.html
83c5b2bbf6dec26c180ea3c37b0753d1 *inst/doc/ces.html
68e24e5e7e0d42cdc6f6807d7f4d8c56 *inst/doc/es.R
0e97516b5daa5c8d147653db40be63ee *inst/doc/es.Rmd
4a5c5a57975e6b909496c013c1d64f8a *inst/doc/es.html
871adf6332d8e5d5b443299f1aad52c9 *inst/doc/es.html
2e237111beaf1e19e30fb3c019c888a1 *inst/doc/gum.R
1f1f86af77a9e7be83bacc96c7fb5bb4 *inst/doc/gum.Rmd
68e1837f718a5a51ba5003c52454e7b7 *inst/doc/gum.html
a2ec8bf1bc09cd7357c33a25ba5fdb55 *inst/doc/gum.html
64ec686041992e6ba10c2dd4bb169551 *inst/doc/oes.R
3560d7cf12287f7d6670067b7ad90cb1 *inst/doc/oes.Rmd
87a4b2d0749f9e337ba567017333ca12 *inst/doc/oes.html
7c41e0cfbbbc20858de9a57fa929f58a *inst/doc/oes.html
da2f860c38092079751953639e2bd6b9 *inst/doc/simulate.R
3456eace8d7510180a0cdd3605c179ea *inst/doc/simulate.Rmd
26aee711c0ea1c62c9cbd2d1f2356ff8 *inst/doc/simulate.html
86c4eef65a22a908874e1c67187440f9 *inst/doc/simulate.html
ca9229ba98cf31c27a1534eb73d9ef10 *inst/doc/sma.R
677443549ff9966b898196aabb087151 *inst/doc/sma.Rmd
687d35cc7697528ed3c340a179d7bdd3 *inst/doc/sma.html
ca5805b6e0fc601c2971b75186247404 *inst/doc/sma.html
f2be0cff7be52faff06f2a377333a8c6 *inst/doc/smooth-Documentation.pdf
69802db80bcf5775ededb1dfc183e7a3 *inst/doc/smooth.R
e9a1a24ea9b95130cbef42a2085f378a *inst/doc/smooth.Rmd
238dfe228e9fea020a60f7d5319ff2df *inst/doc/smooth.html
c956ff6e4644fcfb50ab12fb44b3ce84 *inst/doc/smooth.Rmd
9da5fe94495348916d2edfa52e74aa31 *inst/doc/smooth.html
d32873978eae67406eabac3b5c61cc24 *inst/doc/ssarima.R
c5df97a93785052b7e8ac58652d7ded8 *inst/doc/ssarima.Rmd
cf06a51406be2f7c9c99f65ca66e3efa *inst/doc/ssarima.html
2400f47ab064cd2b8c3e12b9e0206c98 *inst/doc/ssarima.html
135d01678fd26cf81756b388d8033ae6 *man/accuracy.Rd
765c4d878947e743d0168ba7951f664a *man/adam.Rd
6b34ec5cb66585dec4517d3e98de993a *man/adam.Rd
2064c34918c99da32bb293f644d1049d *man/auto.ces.Rd
9d70d1633a8c0ebe1a8edb78c62f67b2 *man/auto.gum.Rd
b1970940c2ac1c033449524a4361b5d2 *man/auto.ssarima.Rd
2981c36996860928a926e0d57297a905 *man/ces.Rd
7ebfc529b07de674f85d58f8594e8fe0 *man/cma.Rd
2a771d2ca635a63be4ecae3feac90520 *man/es.Rd
d2c1cbdd8e763c11a1e3450d84782090 *man/cma.Rd
7b65975013b9f309d8449ab544cfd760 *man/es.Rd
163b8603f9a45ef305b7046ef0c647f4 *man/forecast.smooth.Rd
eb6175f636bd9ba3a1440e2d28f364f9 *man/gum.Rd
29dae08a95088bfce1a5732f104abb2f *man/gum.Rd
7ce89f3f44bc255844499d9b3a7d28dc *man/isFunctions.Rd
cc98946de57958be2d727e1659b6feb6 *man/msarima.Rd
09f1446e3dcabcc7514b8d9fcf3f3d31 *man/msdecompose.Rd
9791a179866a28bb975e37f83fca7e46 *man/msdecompose.Rd
bc9beae49b356b2cd99143e1744a1b7a *man/multicov.Rd
303b3dead241b824860911ff0b8985e1 *man/oes.Rd
da6f58f8aa4baa8edd9e146f86e0591e *man/oesg.Rd
Expand All @@ -95,26 +95,26 @@ be7382f8b2d98bd730b7ab6606beece3 *man/reexports.Rd
fed68f135199be9b43560dfc207ec219 *man/rmultistep.Rd
ba9ecd1d8c6703453ee1175e933ab414 *man/sim.ces.Rd
c55eba92adfb3630515f1d1d0e3cfbf8 *man/sim.es.Rd
050e101dde29069cd2ea1d11882741a0 *man/sim.gum.Rd
efba83e77f5f1143f3f6b08062b1725a *man/sim.gum.Rd
e2e33ea158da93cf2577ab9c8a45fe69 *man/sim.oes.Rd
c7c700f2093c421a10cfcef28828bae5 *man/sim.sma.Rd
f9abd11f3a036809d9b84a093a3e55dd *man/sim.ssarima.Rd
656f3fb6b50b78941b6e1f2a1bd5523f *man/sma.Rd
5b254f0b1a5511310da603e55345ed2b *man/smooth.Rd
5f9e2800c60d8b22bb2cbb066da42c91 *man/sma.Rd
39019b140789537fbf7d753012562909 *man/smooth.Rd
b66a2f843f81d19ddfb1476f7df3f234 *man/smoothCombine.Rd
937692b5fb25d64ce157f8815973ddd1 *man/sowhat.Rd
716e28b94fcebc0c4d0c19df77cff789 *man/ssarima.Rd
2e7b3f56789236798d3f6642813f224c *src/Makevars
7cc404a2b2d3a6aea6d80ef2d080e3c7 *src/Makevars.win
ce9de74824160030765ca2a360f46716 *src/RcppExports.cpp
5b06fafc4201f4c02590927142a06adc *src/adamGeneral.cpp
b36bcca51dd6ae49171ca576468a9a13 *src/adamGeneral.h
be656160bfd37c26ecdc5058a9967f5f *src/adamRefitter.cpp
85e0a292d0be7883590e02684057c002 *src/adamSimulator.cpp
8e457cc39ddbc90b7d23e03f830cb801 *src/RcppExports.cpp
fb257039cd14249b843880776cfe5eee *src/adamGeneral.cpp
d262d8c40bc6304e9b3ac2380951ad6c *src/adamGeneral.h
e679ff3ae4451d365bd29eb0a7bb45a6 *src/adamRefitter.cpp
1a6c8ac3da8750e1b06c5b343fb32876 *src/adamSimulator.cpp
3e778d3caa119ed42a745ca109cdecc3 *src/matrixPowerWrap.cpp
9fb0915a4e7ffe192150808e5e890c69 *src/registerDynamicSymbol.c
7e976d7ca79380b4fd2e517aa92d55fc *src/ssGeneral.cpp
80552072ea20f750d412a9f510a2d337 *src/ssGeneral.h
95e13cf27528965b1d8dc790f46ccea0 *src/ssGeneral.cpp
a2a1915024432000322f5f4f0b8561cf *src/ssGeneral.h
3b2327af0bf2cc52c6c29ba3c6c2adab *src/ssOccurrence.cpp
2251fdf370b5e6cfbafa86986dc99c80 *src/ssSimulator.cpp
4e0f43b23ba7abbb29b225614e88f276 *tests/testthat.R
Expand All @@ -134,5 +134,5 @@ bb04e095c3fb0005695affa4afd2e923 *tests/testthat/test_oes.R
3456eace8d7510180a0cdd3605c179ea *vignettes/simulate.Rmd
677443549ff9966b898196aabb087151 *vignettes/sma.Rmd
f2be0cff7be52faff06f2a377333a8c6 *vignettes/smooth-Documentation.pdf
e9a1a24ea9b95130cbef42a2085f378a *vignettes/smooth.Rmd
c956ff6e4644fcfb50ab12fb44b3ce84 *vignettes/smooth.Rmd
c5df97a93785052b7e8ac58652d7ded8 *vignettes/ssarima.Rmd
1 change: 1 addition & 0 deletions NAMESPACE
Expand Up @@ -116,6 +116,7 @@ S3method(rstandard,smooth)
S3method(rstudent,adam)
S3method(rstudent,smooth)
S3method(sigma,adam)
S3method(sigma,msdecompose)
S3method(sigma,smooth)
S3method(sigma,smooth.sim)
S3method(simulate,adam)
Expand Down
19 changes: 19 additions & 0 deletions NEWS
@@ -1,3 +1,22 @@
smooth v4.0.1 (Release data: 2024-04-01)
=======

Changes:
* Initialisation of ARIMA is now more precise, both for "optimal" and "backcasting", leading to a better fit of the model to the data. This was done using more meaningful initial values of states and by cutting the small step of refitting the head states in ARIMA with backcasting.
* Further tuning of the initialisation via backcasting. This time in C++ code for the preheating period.
* Rewrote the polynomialiser() function in C++. This should speed up ADAM ARIMA and msarima().
* Renamed the internal variable "profileObseredTable" into a more meaningful "indexLookupTable".

Bugfixes:
* Fixed a bug with multicov.adam() and simulated covariance matrix.
* adam() ARIMA and msarima() with backcasting would count number of components towards the number of estimated parameters.
* adam() would not remove components of ETS correctly in cases of small samples (e.g. obs == 2*frequency).
* Fixed the code of sma() - there was a bug in the architecture resulting in wrong fitting.
* ARIMA parameters are now initialised even when ACF/PACF returns NaNs (exotic case).
* Fixed bugs in es() not accepting xreg of a different length than y and not using the existing data in pre-estimated model via model=ourModel. Thanks to Nikos Kourentzes for spotting these!
* Another bugfix in es() and xreg: resolved the issue with the simulated data.


smooth v4.0.0 (Release data: 2023-09-15)
=======

Expand Down
28 changes: 16 additions & 12 deletions R/RcppExports.R
@@ -1,28 +1,32 @@
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

adamFitterWrap <- function(matrixVt, matrixWt, matrixF, vectorG, lags, profilesObserved, profilesRecent, Etype, Ttype, Stype, componentsNumberETS, nSeasonal, nArima, nXreg, constant, vectorYt, vectorOt, backcast) {
.Call('_smooth_adamFitterWrap', PACKAGE = 'smooth', matrixVt, matrixWt, matrixF, vectorG, lags, profilesObserved, profilesRecent, Etype, Ttype, Stype, componentsNumberETS, nSeasonal, nArima, nXreg, constant, vectorYt, vectorOt, backcast)
adamFitterWrap <- function(matrixVt, matrixWt, matrixF, vectorG, lags, indexLookupTable, profilesRecent, Etype, Ttype, Stype, componentsNumberETS, nSeasonal, nArima, nXreg, constant, vectorYt, vectorOt, backcast) {
.Call('_smooth_adamFitterWrap', PACKAGE = 'smooth', matrixVt, matrixWt, matrixF, vectorG, lags, indexLookupTable, profilesRecent, Etype, Ttype, Stype, componentsNumberETS, nSeasonal, nArima, nXreg, constant, vectorYt, vectorOt, backcast)
}

adamForecasterWrap <- function(matrixWt, matrixF, lags, profilesObserved, profilesRecent, E, T, S, componentsNumberETS, nSeasonal, nArima, nXreg, constant, horizon) {
.Call('_smooth_adamForecasterWrap', PACKAGE = 'smooth', matrixWt, matrixF, lags, profilesObserved, profilesRecent, E, T, S, componentsNumberETS, nSeasonal, nArima, nXreg, constant, horizon)
adamForecasterWrap <- function(matrixWt, matrixF, lags, indexLookupTable, profilesRecent, E, T, S, componentsNumberETS, nSeasonal, nArima, nXreg, constant, horizon) {
.Call('_smooth_adamForecasterWrap', PACKAGE = 'smooth', matrixWt, matrixF, lags, indexLookupTable, profilesRecent, E, T, S, componentsNumberETS, nSeasonal, nArima, nXreg, constant, horizon)
}

adamErrorerWrap <- function(matrixVt, matrixWt, matrixF, lags, profilesObserved, profilesRecent, Etype, Ttype, Stype, componentsNumberETS, nSeasonal, nArima, nXreg, constant, horizon, vectorYt, vectorOt) {
.Call('_smooth_adamErrorerWrap', PACKAGE = 'smooth', matrixVt, matrixWt, matrixF, lags, profilesObserved, profilesRecent, Etype, Ttype, Stype, componentsNumberETS, nSeasonal, nArima, nXreg, constant, horizon, vectorYt, vectorOt)
adamErrorerWrap <- function(matrixVt, matrixWt, matrixF, lags, indexLookupTable, profilesRecent, Etype, Ttype, Stype, componentsNumberETS, nSeasonal, nArima, nXreg, constant, horizon, vectorYt, vectorOt) {
.Call('_smooth_adamErrorerWrap', PACKAGE = 'smooth', matrixVt, matrixWt, matrixF, lags, indexLookupTable, profilesRecent, Etype, Ttype, Stype, componentsNumberETS, nSeasonal, nArima, nXreg, constant, horizon, vectorYt, vectorOt)
}

adamRefitterWrap <- function(matrixYt, matrixOt, arrayVt, arrayF, arrayWt, matrixG, E, T, S, lags, profilesObserved, arrayProfilesRecent, nSeasonal, componentsNumberETS, nArima, nXreg, constant) {
.Call('_smooth_adamRefitterWrap', PACKAGE = 'smooth', matrixYt, matrixOt, arrayVt, arrayF, arrayWt, matrixG, E, T, S, lags, profilesObserved, arrayProfilesRecent, nSeasonal, componentsNumberETS, nArima, nXreg, constant)
adamPolynomialiser <- function(B, arOrders, iOrders, maOrders, arEstimate, maEstimate, armaParameters, lags) {
.Call('_smooth_adamPolynomialiser', PACKAGE = 'smooth', B, arOrders, iOrders, maOrders, arEstimate, maEstimate, armaParameters, lags)
}

adamReforecasterWrap <- function(arrayErrors, arrayOt, arrayF, arrayWt, matrixG, E, T, S, lags, profilesObserved, arrayProfileRecent, nSeasonal, componentsNumberETS, nArima, nXreg, constant) {
.Call('_smooth_adamReforecasterWrap', PACKAGE = 'smooth', arrayErrors, arrayOt, arrayF, arrayWt, matrixG, E, T, S, lags, profilesObserved, arrayProfileRecent, nSeasonal, componentsNumberETS, nArima, nXreg, constant)
adamRefitterWrap <- function(matrixYt, matrixOt, arrayVt, arrayF, arrayWt, matrixG, E, T, S, lags, indexLookupTable, arrayProfilesRecent, nSeasonal, componentsNumberETS, nArima, nXreg, constant) {
.Call('_smooth_adamRefitterWrap', PACKAGE = 'smooth', matrixYt, matrixOt, arrayVt, arrayF, arrayWt, matrixG, E, T, S, lags, indexLookupTable, arrayProfilesRecent, nSeasonal, componentsNumberETS, nArima, nXreg, constant)
}

adamSimulatorWrap <- function(arrayVt, matrixErrors, matrixOt, arrayF, matrixWt, matrixG, E, T, S, lags, profilesObserved, profilesRecent, nSeasonal, componentsNumber, nArima, nXreg, constant) {
.Call('_smooth_adamSimulatorWrap', PACKAGE = 'smooth', arrayVt, matrixErrors, matrixOt, arrayF, matrixWt, matrixG, E, T, S, lags, profilesObserved, profilesRecent, nSeasonal, componentsNumber, nArima, nXreg, constant)
adamReforecasterWrap <- function(arrayErrors, arrayOt, arrayF, arrayWt, matrixG, E, T, S, lags, indexLookupTable, arrayProfileRecent, nSeasonal, componentsNumberETS, nArima, nXreg, constant) {
.Call('_smooth_adamReforecasterWrap', PACKAGE = 'smooth', arrayErrors, arrayOt, arrayF, arrayWt, matrixG, E, T, S, lags, indexLookupTable, arrayProfileRecent, nSeasonal, componentsNumberETS, nArima, nXreg, constant)
}

adamSimulatorWrap <- function(arrayVt, matrixErrors, matrixOt, arrayF, matrixWt, matrixG, E, T, S, lags, indexLookupTable, profilesRecent, nSeasonal, componentsNumber, nArima, nXreg, constant) {
.Call('_smooth_adamSimulatorWrap', PACKAGE = 'smooth', arrayVt, matrixErrors, matrixOt, arrayF, matrixWt, matrixG, E, T, S, lags, indexLookupTable, profilesRecent, nSeasonal, componentsNumber, nArima, nXreg, constant)
}

matrixPowerWrap <- function(matA, power) {
Expand Down

0 comments on commit 9ac843f

Please sign in to comment.