Skip to content

Commit

Permalink
version 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
config-i1 authored and cran-robot committed Dec 23, 2017
1 parent 51547bd commit 09a138d
Show file tree
Hide file tree
Showing 64 changed files with 1,574 additions and 505 deletions.
14 changes: 7 additions & 7 deletions DESCRIPTION
@@ -1,10 +1,10 @@
Package: smooth
Type: Package
Title: Forecasting Using Smoothing Functions
Version: 2.2.1
Date: 2017-11-15
Version: 2.3.0
Date: 2017-12-23
Authors@R: person("Ivan", "Svetunkov", email = "ivan@svetunkov.ru", role = c("aut", "cre"),
comment="Lecturer at Lancaster Centre for Marketing Analytics and Forecasting, UK")
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
Description: The set of smoothing functions used for time series analysis and
Expand All @@ -19,9 +19,9 @@ Suggests: Mcomp, numDeriv, testthat, knitr, rmarkdown
VignetteBuilder: knitr
RoxygenNote: 6.0.1
NeedsCompilation: yes
Packaged: 2017-11-15 21:52:04 UTC; config
Author: Ivan Svetunkov [aut, cre] (Lecturer at Lancaster Centre for Marketing
Analytics and Forecasting, UK)
Packaged: 2017-12-23 18:21:22 UTC; config
Author: Ivan Svetunkov [aut, cre] (Lecturer at Centre for Marketing Analytics
and Forecasting, Lancaster University, UK)
Maintainer: Ivan Svetunkov <ivan@svetunkov.ru>
Repository: CRAN
Date/Publication: 2017-11-15 23:39:22 UTC
Date/Publication: 2017-12-23 21:54:44 UTC
124 changes: 63 additions & 61 deletions MD5
@@ -1,17 +1,17 @@
512418a84cfb043e3c459321dd2c1018 *DESCRIPTION
bb9381bb3841d8e3a43dc4c60dc58909 *NAMESPACE
e4fbe276c18d3602e6b08cb6dc0ae2f9 *NEWS
16ea8ff92c9e3b248d04e33e2e781004 *DESCRIPTION
9cc90e0b5dd726cd1c43861041f6a01d *NAMESPACE
b1fc1c2e5ba99eafd468fbdb40180d86 *NEWS
37349dc582f54f288b2894117ad36463 *R/RcppExports.R
1d0e49f73f76b13807574688222620a8 *R/autoces.R
cb85817e4dd4b5267ebf3fd40e3fe3bb *R/autoges.R
ffb66d193c0eea500522cb2987913d1c *R/autoces.R
7fe7abb648d8db2519c238852361a184 *R/autoges.R
7b8e47f59a4ae912eaebd47a0749f719 *R/autossarima.R
b8958b131bbd50a3888184701a5b9c6a *R/ces.R
ada7c440a854e31ef4611bed682cc9c0 *R/ces.R
f459c04b5a4c84d02b59af32b90e9ad4 *R/error-measures.R
a0e18c043a8c1e64e5a93258154642a9 *R/es.R
ba47d1b673815ce8ea200439c1a35512 *R/ges.R
7186d8e2afb8d2dc4145d141d90a2628 *R/graphmaker.R
82bed75bffc48499421a464b599bde94 *R/iss.R
26ceeec608708e6290e9cab7f1e23800 *R/methods.R
8b3db1804d386113758d6de257389b08 *R/es.R
89f56094fb5449bedae429d039c09315 *R/ges.R
8df7519423e8362d425c48023b691f68 *R/graphmaker.R
8c5771d38fd4e82d5afcfc11951d208e *R/iss.R
05d91eea9c3ad2471b06c9f52aee84cb *R/methods.R
da69839cee0b56ba048befa06dd15d54 *R/simces.R
263a86f9a85d7ee2276dade9f8faf337 *R/simes.R
6929bf581803ad3d876090a09e6ca7a6 *R/simges.R
Expand All @@ -20,53 +20,54 @@ a38a61c218e0c31e720c661377c1fd0e *R/simsma.R
39529968145d52c50ba0b1d84ba2089b *R/sma.R
70fa2935891c0af415e5a15a378a94ee *R/smooth-package.R
fdf3aa6c13b2e0ce92639964dac5b191 *R/sowhat.R
16a76d80811a5ae7641c1ab54c1df15e *R/ssarima.R
ce043af6868c2ee1e8a7b8b6f20cddfb *R/ssfunctions.R
7696390e6b97f0caeb592f571df87a98 *R/stepwise.R
658332c84c06aa6e9c57b20a9a92a127 *R/ves.R
7ffefd13b852ef2936ebd71274860b1b *R/vmethods.R
834118c4b77bd76f0b4563cea6dde424 *R/vssFunctions.R
ac1386e89ef543d89e9e88d68b4e52c4 *R/xregExpander.R
8a5741d00a007147898d3b331b657d48 *R/ssarima.R
6562637ca226d3578062d35e002d2f81 *R/ssfunctions.R
8d4485ed1732af9654137cb9987e5de1 *R/stepwise.R
aefa03e0de19c6a5fc5db4e14b55e11a *R/ves.R
9394e0f0a5d786b5659441482ff3690f *R/viss.R
608d7de298568990be2ffe50b6b5b31c *R/vmethods.R
0213db7f303b4b38908d94d6adb87fe4 *R/vssFunctions.R
ef5c72ff368d450ad4cfeb75e9bbd7cd *R/xregExpander.R
2e38a1f2a7a77516a7acc9b0e010ce98 *R/zzz.R
3edfbe7920d7ee9312555f13efcf0456 *README.md
081511779315ab60f99b2021c0808802 *build/vignette.rds
591eab0cf00c0d5ad99fd1208bf8be3c *inst/doc/ces.R
1ceeb5bf5e782cc865cceea1e1b4b4f4 *inst/doc/ces.Rmd
920795c925d54233ee1cff59cb6ac522 *inst/doc/ces.html
bf65bdcd5afa80891b725afd172d56b3 *inst/doc/es.R
9ea3846b3b6f0ce27ab83e9120ff1784 *inst/doc/es.Rmd
8474f2694c2a000cfce4e9128fb7ab20 *inst/doc/es.html
45d9763c4f7f91e6848c0440ad7e34e5 *inst/doc/ges.R
78564d21b17ab88ef7756a729df871be *inst/doc/ges.Rmd
748dcff0bf6aad3d42cd08761070a184 *inst/doc/ges.html
46e9a5cee4accfe1548abaea61765197 *inst/doc/simulate.R
1df9ce185d0a4832f9abce669706e37b *inst/doc/simulate.Rmd
cbc5b9871b3436aee26486bd78ed581b *inst/doc/simulate.html
8e1c32f63e2ea5a8e5eb85b9bf31b1db *inst/doc/sma.R
a2cb1d397a0258d449763bfb68326f4b *inst/doc/sma.Rmd
02e3d5598f814f5cce35991d97900d1c *inst/doc/sma.html
8cc333a884185e248e5421d1a6b1e91e *build/vignette.rds
cbee8299ea7a4e9d9b4ef303f4e6a01a *inst/doc/ces.R
9a6306fb84d1f4cf62fdecb1966aa0ab *inst/doc/ces.Rmd
0fd3f804b5630497ccc23ae9734ba3fa *inst/doc/ces.html
2e5de9267769df92117c29496c7f9741 *inst/doc/es.R
7f2153c01ba2869e4d0f1f5185757840 *inst/doc/es.Rmd
2ec688c332ebb17fb6a905239720ba33 *inst/doc/es.html
d3fc2990a58ec8e1a80e25fb0a27f3eb *inst/doc/ges.R
492254727ba37b5e11e27e1653a96872 *inst/doc/ges.Rmd
1214586b597ad35757e912225e2b19e8 *inst/doc/ges.html
2c8ee283de1bd9bd9ad401d1034d38ad *inst/doc/simulate.R
4d6886ad9d934c416f05c98959b042c2 *inst/doc/simulate.Rmd
98926ce461b0d4721358a69543f041a9 *inst/doc/simulate.html
5834d35fd17557d8005dd308aa351bb2 *inst/doc/sma.R
8cb859d21072dff613ae6439ef6bdd91 *inst/doc/sma.Rmd
686da169fe61212cae80de1356323b19 *inst/doc/sma.html
f2be0cff7be52faff06f2a377333a8c6 *inst/doc/smooth-Documentation.pdf
ab7560c1647929fa67f92f931009917d *inst/doc/smooth.R
92af2e1ce4db47efe8a15dcb525d3350 *inst/doc/smooth.Rmd
1a913dc954512e163dc51831de706227 *inst/doc/smooth.html
15077f51d5e9e430a006f8eb59d90c13 *inst/doc/ssarima.R
5409f129b5ae093817e2411c239602e0 *inst/doc/ssarima.Rmd
6cc722ed37d2987ee88a9d52b4153625 *inst/doc/ssarima.html
64312868d316dd4ba7384cec044050d1 *inst/doc/ves.R
3841e3e81d8b01ed2bb2dac7da3eb1c4 *inst/doc/ves.Rmd
fdf2fbc42b314f73f9707a9cc12f541e *inst/doc/ves.html
e8fb5b82e57700b42daa4f3632bfbbf1 *inst/doc/smooth.html
e568bdbdf1b30f81203586215b2a960c *inst/doc/ssarima.R
34848d642b0687c7222197922f1a8ae3 *inst/doc/ssarima.Rmd
f0f3d444a8dcaa8d4ac35c3b5ebefcb3 *inst/doc/ssarima.html
78615ac418fb024690c00e35b42b5534 *inst/doc/ves.R
6c8b41018faa5597c4c3373c512a5e1e *inst/doc/ves.Rmd
92130706ca1e4c16ac2354ada45c9854 *inst/doc/ves.html
37ac81fd907286cf1bfae32faa76c1be *man/AICc.Rd
bce7a82982f31f7dfc6bfa7ae5d1cc82 *man/auto.ces.Rd
059b07e1a872a4c64e639ea230cf34da *man/auto.ges.Rd
7621d6b33d05fbf5630cf4a4f5bb0949 *man/auto.ssarima.Rd
99ef35fec3d75dc3904d652461fe995e *man/ces.Rd
87c7caaeca5e2f4b718f8c188a087f08 *man/auto.ces.Rd
052d50b686ae0b647d0fcc6ac74218d3 *man/auto.ges.Rd
e0100713c10c2f45ca4cc5655f51b291 *man/auto.ssarima.Rd
5d9dea55da776bb7bc4a344a39206285 *man/ces.Rd
c74046c6542ea356c0d501d17da7884e *man/error-measures.Rd
d014b369908704ce143d901f9e2f6f59 *man/es.Rd
b380f54577dc08296b3fd1cd4f2c8bbd *man/es.Rd
f3ed0b0c8141601ade33960b4adaf625 *man/forecast.smooth.Rd
2c48956fa33dac6a59bc47e34c99b11b *man/ges.Rd
b6a927a7e781fa297361d193b3fb2610 *man/ges.Rd
af48261bd26505868b5f69dc8f72d744 *man/graphmaker.Rd
3639c7d4ce4e4a34cf963a692d1504de *man/hm.Rd
c73644b28db971fcc1b96cb1650bbbff *man/iss.Rd
606017977acecd5087fec2c79332c21b *man/iss.Rd
a88b6766e9af23292de6eb1a7198e96d *man/nParam.Rd
79d9433fe65351f998c5135409520b87 *man/orders.Rd
32ba66fb55d350baeddf8fa8d2c7582a *man/pls.Rd
Expand All @@ -80,29 +81,30 @@ a88b6766e9af23292de6eb1a7198e96d *man/nParam.Rd
d2a76be04301a6ee211d85327a2a60cf *man/sma.Rd
ac3b74d8318d0056ffbc5cf6bec453ec *man/smooth.Rd
43c220a1c003d0dbf0deb9abee04c8a5 *man/sowhat.Rd
c373db16d8fb24dff817ea6624b2b9c2 *man/ssarima.Rd
731ca80b5424794abf9c17ec7a1612da *man/stepwise.Rd
a14e34f4877fbaf5796fd0ad1e21e5cf *man/ves.Rd
dc2224e29b8079a3b37ca53f7846eeb4 *man/ssarima.Rd
268f782cd1ade6555bfdfdb24693d26a *man/stepwise.Rd
62927f4681224bcc07e3140fe8d9e68d *man/ves.Rd
e777f346c3d44b3099e3ab82f65ad2e7 *man/viss.Rd
bc1c0a7cd81c16a8f24ac5a09018d621 *man/xregExpander.Rd
9859afefaf6500832d7469cadbbb28c8 *src/Makevars
a6850c2998c396b505104b800670480e *src/Makevars.win
d110340e8c48ffeb684cbd4b16102480 *src/RcppExports.cpp
9fb0915a4e7ffe192150808e5e890c69 *src/registerDynamicSymbol.c
ae77cf25b22cc0a03378a1b8f81017fa *src/ssgeneralfun.cpp
01456cf00361e634cbf7072cb8918f97 *src/vssGeneral.cpp
618a04695dc72af516664b13c4f02c0c *src/ssgeneralfun.cpp
d7ee89f14912b9bc39ff1c7b2da7a1e6 *src/vssGeneral.cpp
4e0f43b23ba7abbb29b225614e88f276 *tests/testthat.R
ce0c82d2b00807f0783cb0b472a4b5a1 *tests/testthat/test_ces.R
d0d4500c92caff24ad9f577673f6da22 *tests/testthat/test_es.R
86ae7bbe3b96335892bc1f68d93de1e6 *tests/testthat/test_es.R
8d89e0ea91f860f5f587d8ac449fd441 *tests/testthat/test_ges.R
a312218ee6efc438b2d1c151666e13be *tests/testthat/test_iss.R
3f30a33a6bec9d89d3ff745e0006bdc2 *tests/testthat/test_simulate.R
5903710aa5287a11fcfba27b84b5e1a7 *tests/testthat/test_ssarima.R
c9bc7f36d491e62c70cd1344ff6bbcf0 *tests/testthat/test_ves.R
1ceeb5bf5e782cc865cceea1e1b4b4f4 *vignettes/ces.Rmd
9ea3846b3b6f0ce27ab83e9120ff1784 *vignettes/es.Rmd
78564d21b17ab88ef7756a729df871be *vignettes/ges.Rmd
1df9ce185d0a4832f9abce669706e37b *vignettes/simulate.Rmd
a2cb1d397a0258d449763bfb68326f4b *vignettes/sma.Rmd
9a6306fb84d1f4cf62fdecb1966aa0ab *vignettes/ces.Rmd
7f2153c01ba2869e4d0f1f5185757840 *vignettes/es.Rmd
492254727ba37b5e11e27e1653a96872 *vignettes/ges.Rmd
4d6886ad9d934c416f05c98959b042c2 *vignettes/simulate.Rmd
8cb859d21072dff613ae6439ef6bdd91 *vignettes/sma.Rmd
92af2e1ce4db47efe8a15dcb525d3350 *vignettes/smooth.Rmd
5409f129b5ae093817e2411c239602e0 *vignettes/ssarima.Rmd
3841e3e81d8b01ed2bb2dac7da3eb1c4 *vignettes/ves.Rmd
34848d642b0687c7222197922f1a8ae3 *vignettes/ssarima.Rmd
6c8b41018faa5597c4c3373c512a5e1e *vignettes/ves.Rmd
7 changes: 7 additions & 0 deletions NAMESPACE
Expand Up @@ -12,34 +12,40 @@ S3method(lags,default)
S3method(logLik,iss)
S3method(logLik,smooth)
S3method(logLik,smooth.sim)
S3method(logLik,viss)
S3method(modelType,default)
S3method(modelType,vsmooth)
S3method(nParam,default)
S3method(nParam,iss)
S3method(nParam,smooth)
S3method(nParam,viss)
S3method(nobs,iss)
S3method(nobs,smooth)
S3method(nobs,smooth.sim)
S3method(nobs,viss)
S3method(nobs,vsmooth)
S3method(orders,Arima)
S3method(orders,default)
S3method(plot,iss)
S3method(plot,smooth)
S3method(plot,smooth.forecast)
S3method(plot,smooth.sim)
S3method(plot,viss)
S3method(pointLik,default)
S3method(pointLik,smooth)
S3method(print,iss)
S3method(print,smooth)
S3method(print,smooth.forecast)
S3method(print,smooth.sim)
S3method(print,viss)
S3method(print,vsmooth)
S3method(sigma,smooth)
S3method(sigma,vsmooth)
S3method(simulate,smooth)
S3method(summary,iss)
S3method(summary,smooth)
S3method(summary,smooth.forecast)
S3method(summary,viss)
S3method(summary,vsmooth)
export(AICc)
export(MAPE)
Expand Down Expand Up @@ -79,6 +85,7 @@ export(sowhat)
export(ssarima)
export(stepwise)
export(ves)
export(viss)
export(xregExpander)
import(Rcpp)
import(zoo)
Expand Down
31 changes: 31 additions & 0 deletions NEWS
@@ -1,3 +1,34 @@
smooth v2.3.0 (Release data: 2017-12-23)
==============

Changes:
* New function, viss() - vector intermittent state-space model. Allows modelling occurrence probability of several variables simultaneously.
* New initialisation for es(), ges() and ces(). This should help getting more accurate initial states in cases of high frequency data.
* The user can now control the optimiser via maxeval and xtol_rel provided in ellipsis of es() and ges() functions.

Bugfixes:
* smooth functions would return errors in case when some xreg variables were dropped and only one would be left.
* ETSX(Z,Z,Z) did not work when xreg contained negative data. Now it should.
* Number of parameters in case of xregDo="select" was incorrect.


smooth v2.2.2 (Release data: 2017-12-15)
==============

Changes:
* Updated vignettes.
* New probability type for intermittent models - "logistic".
* In the case when we don't have binary xreg for the holdout, we now consider it as random and forecast it using iss().
* graphmaker() now only resets par() when legend=TRUE. This allows using layout and producing several plots with the function on one canvas.
* xregExpander() now uses iss() function in case of binary data.
* Updated an example in stepwise() function.
* ves() function now uses warning() instead of message() everywhere.
* iss() now also accepts and returns initialSeason (works with intermittent="l" only).

Bugfixes:
* Fixed Likelihood calculation for TSB probability model.


smooth v2.2.1 (Release data: 2017-11-15)
==============

Expand Down
3 changes: 2 additions & 1 deletion R/autoces.R
Expand Up @@ -57,7 +57,8 @@ auto.ces <- function(data, models=c("none","simple","full"),
cfType=c("MSE","MAE","HAM","MSEh","TMSE","GTMSE"),
h=10, holdout=FALSE, cumulative=FALSE,
intervals=c("none","parametric","semiparametric","nonparametric"), level=0.95,
intermittent=c("none","auto","fixed","interval","probability","sba"), imodel="MNN",
intermittent=c("none","auto","fixed","interval","probability","sba","logistic"),
imodel="MNN",
bounds=c("admissible","none"),
silent=c("all","graph","legend","output","none"),
xreg=NULL, xregDo=c("use","select"), initialX=NULL,
Expand Down
3 changes: 2 additions & 1 deletion R/autoges.R
Expand Up @@ -57,7 +57,8 @@ auto.ges <- function(data, orderMax=3, lagMax=frequency(data), type=c("A","M","Z
cfType=c("MSE","MAE","HAM","MSEh","TMSE","GTMSE"),
h=10, holdout=FALSE, cumulative=FALSE,
intervals=c("none","parametric","semiparametric","nonparametric"), level=0.95,
intermittent=c("none","auto","fixed","interval","probability","sba"), imodel="MNN",
intermittent=c("none","auto","fixed","interval","probability","sba","logistic"),
imodel="MNN",
bounds=c("admissible","none"),
silent=c("all","graph","legend","output","none"),
xreg=NULL, xregDo=c("use","select"), initialX=NULL,
Expand Down
13 changes: 11 additions & 2 deletions R/ces.R
Expand Up @@ -72,6 +72,7 @@ utils::globalVariables(c("silentText","silentGraph","silentLegend","initialType"
#' \item \code{actuals} - The data provided in the call of the function.
#' \item \code{holdout} - the holdout part of the original data.
#' \item \code{imodel} - model of the class "iss" if intermittent model was estimated.
#' If the model is non-intermittent, then imodel is \code{NULL}.
#' \item \code{xreg} - provided vector or matrix of exogenous variables. If
#' \code{xregDo="s"}, then this value will contain only selected exogenous
#' variables.
Expand Down Expand Up @@ -141,7 +142,8 @@ ces <- function(data, seasonality=c("none","simple","partial","full"),
cfType=c("MSE","MAE","HAM","MSEh","TMSE","GTMSE"),
h=10, holdout=FALSE, cumulative=FALSE,
intervals=c("none","parametric","semiparametric","nonparametric"), level=0.95,
intermittent=c("none","auto","fixed","interval","probability","sba"), imodel="MNN",
intermittent=c("none","auto","fixed","interval","probability","sba","logistic"),
imodel="MNN",
bounds=c("admissible","none"),
silent=c("all","graph","legend","output","none"),
xreg=NULL, xregDo=c("use","select"), initialX=NULL,
Expand Down Expand Up @@ -419,7 +421,7 @@ CreatorCES <- function(silentText=FALSE,...){
matw <- matrix(c(1,0),1,2);
matvt <- matrix(NA,obsStates,2);
colnames(matvt) <- c("level","potential");
matvt[1,] <- c(mean(yot[1:min(10,obsNonzero)]),mean(yot[1:min(10,obsNonzero)])/1.1);
matvt[1,] <- c(mean(yot[1:min(max(10,datafreq),obsNonzero)]),mean(yot[1:min(max(10,datafreq),obsNonzero)])/1.1);
}
else if(seasonality=="s"){
# Simple seasonality, lagged CES
Expand Down Expand Up @@ -650,6 +652,10 @@ CreatorCES <- function(silentText=FALSE,...){
colnames(matxt) <- colnames(matat) <- xregNames;
}
xreg <- matxt;
if(xregDo=="s"){
nParamExo <- FXEstimate*length(matFX) + gXEstimate*nrow(vecgX) + initialXEstimate*ncol(matat);
parametersNumber[1,2] <- nParamExo;
}
}

# Prepare for fitting
Expand Down Expand Up @@ -712,6 +718,9 @@ CreatorCES <- function(silentText=FALSE,...){
else if(intermittent=="p"){
intermittent <- "probability";
}
else if(intermittent=="l"){
intermittent <- "logistic";
}
else if(intermittent=="n"){
intermittent <- "none";
}
Expand Down

0 comments on commit 09a138d

Please sign in to comment.