Skip to content

Commit

Permalink
version 2.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
config-i1 authored and cran-robot committed Dec 2, 2018
1 parent d0e3c26 commit ecaf3fb
Show file tree
Hide file tree
Showing 55 changed files with 1,999 additions and 975 deletions.
13 changes: 7 additions & 6 deletions DESCRIPTION
@@ -1,30 +1,31 @@
Package: smooth
Type: Package
Title: Forecasting Using State Space Models
Version: 2.4.6
Date: 2018-08-25
Version: 2.4.7
Date: 2018-11-30
Authors@R: person("Ivan", "Svetunkov", email = "ivan@svetunkov.ru", 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
Language: en-GB
Description: Functions implementing Single Source of Error state space models for purposes
of time series analysis and forecasting. The package includes Exponential Smoothing,
SARIMA, Complex Exponential Smoothing, Simple Moving Average, Vector Exponential
Smoothing in state space forms, several simulation functions and intermittent demand
state space models.
License: GPL (>= 2)
Depends: R (>= 3.0.2), greybox (>= 0.2.3)
Depends: R (>= 3.0.2), greybox (>= 0.3.3)
Imports: Rcpp (>= 0.12.3), stats, graphics, forecast, nloptr, utils,
zoo
LinkingTo: Rcpp, RcppArmadillo (>= 0.8.100.0.0)
Suggests: Mcomp, numDeriv, testthat, knitr, rmarkdown
VignetteBuilder: knitr
RoxygenNote: 6.1.0
RoxygenNote: 6.1.1
Encoding: UTF-8
NeedsCompilation: yes
Packaged: 2018-08-25 14:46:09 UTC; config
Packaged: 2018-11-30 15:46:23 UTC; isvetunkov
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: 2018-08-25 20:30:03 UTC
Date/Publication: 2018-12-02 17:00:03 UTC
96 changes: 50 additions & 46 deletions MD5
@@ -1,80 +1,82 @@
948796f4f2643aa5df0d99dcaad29cb0 *DESCRIPTION
ff51e58657dba340acc5d41e277b9644 *NAMESPACE
975b10757ecb39b8f2481968733f5505 *NEWS
34021f9a0ed27f9b1aa49fdaefcfa123 *R/RcppExports.R
ab7a51020e53fc259b04ba3e9fb4347e *DESCRIPTION
3d71d0ce417671bb04e016a1282ee86f *NAMESPACE
fa6606cc55df7b62431292981d15771f *NEWS
e9dbeaec2a76e744d5dc8719c70f037f *R/RcppExports.R
75af55225cec91cf037266e37a74ff8b *R/autoces.R
df76574a9f962ff7e18e9dc52d7e36a9 *R/autogum.R
b2634fda7e69a76bb5ec0a3013eb6c33 *R/automsarima.R
3930dc6907f6055d639067de3002bc33 *R/automsarima.R
f1f7d7e6567477d6fdcb82e716f380fb *R/autossarima.R
0b0254ec96dcdbe8c99035981f7b3346 *R/ces.R
86d11281f637c4d952d86300f7012334 *R/cma.R
8c3bdedaeca1b7d6ee0c8bb2a3082cd7 *R/cma.R
458a8bd306773b8920877013fe5fe3ec *R/error-measures.R
9a0571b5e285b09723210de4f31014b5 *R/es.R
1e06a4dda3a4c6e68233ac19975b3c17 *R/graphmaker.R
d1007a93e7cfe6fdcd44eeddc469752c *R/es.R
2819016967b071785e54f667bc3636df *R/gsi.R
39a93216b381e8af398edb19d076d95a *R/gum.R
17db5e5ed04d19a73f9c6da28485f04b *R/iss.R
0d643677514a180c7ad9f729b6d3b725 *R/methods.R
64c813f6ba71f8ea263a15e305ff0926 *R/isFunctions.R
3fcfa2c7da3434211120b880e91f4f35 *R/iss.R
4b1e0e95a06260e4755baed4611d67f9 *R/methods.R
00c8690b3d1499fdf5b44b6b75dd87d5 *R/msarima.R
558377abb5b2e4854bc048880defd84e *R/simces.R
b7c0280eee0edc0b6c48767149d5cace *R/simes.R
c456383cc749b19f78edafd21454b60a *R/simgum.R
ae879998bde94e2a6d2a06147725c6f5 *R/simsma.R
35e59a7a2f9ed74bd442958712176ded *R/simssarima.R
28bcf949fd8dcdd19f2cb1e381f89e68 *R/simves.R
01161a2a18b89b49937a7dc72061c53c *R/simves.R
0ae4fbcfdc103d29bd8b6e9c049eeba4 *R/sma.R
d04935ed18e9015ef7875d2da6dad635 *R/smooth-package.R
8e890fcb3c6bba55187d212cebb4fc98 *R/smoothCombine.R
33ffebfb5779ee4cee7c28044e02c4d8 *R/smooth-package.R
eaf2d7036a3d9e9c1e91f87fe706ac9e *R/smoothCombine.R
24d42f1698e1f50eb27f1a32ecab61c8 *R/sowhat.R
27ea8344e8d4ba09216bbfdd1cf53969 *R/ssarima.R
589bbc3580e220569a3fe0b481e9bb3b *R/ssfunctions.R
96d732021ff06c3e8bfadbc502231820 *R/ssfunctions.R
b45db627556532cfdf6e20ccc1ff34dc *R/variance-covariance.R
4538947573208267a9aeeeda8776f358 *R/ves.R
c8aebd20292b4f634843f08ad589d6f0 *R/ves.R
ad70c2c861a2d83a98093974868fdf80 *R/viss.R
f2fabf64aa20d494ce75f38d2562a7b5 *R/vmethods.R
4519e2975d4ea0d6056b539f7291c6b9 *R/vssFunctions.R
8a6f3748a937d4844b4c911f01df9768 *R/vmethods.R
5532ef36995b0a58a739b406311f455d *R/vssFunctions.R
2e38a1f2a7a77516a7acc9b0e010ce98 *R/zzz.R
655f2425e8243a99d0f68fa93008664b *README.md
180f4ae6c76b749e2b3f7a2afdc299f3 *build/partial.rdb
064cf25595d8b1548536e5e21277e65f *build/vignette.rds
4f15d3f82a5d80e6ede2a9daa2d20795 *README.md
80cbfa273feed9044478ea13bbe41432 *build/partial.rdb
e7b31eda4e91a3fa5c32c6fda2c3f3ff *build/vignette.rds
cbee8299ea7a4e9d9b4ef303f4e6a01a *inst/doc/ces.R
9a6306fb84d1f4cf62fdecb1966aa0ab *inst/doc/ces.Rmd
0360fc0969efcf5afbcf6d2416acc943 *inst/doc/ces.html
43bba5b8d9dc5093210e97d241511859 *inst/doc/ces.html
dcc169d4022fdb0fac9799df36a53609 *inst/doc/es.R
aee1e5b2cf8c8bbc33a28000ea3e3489 *inst/doc/es.Rmd
ce403ab908f8e3a7fb2f7d37b1de60f9 *inst/doc/es.html
1e6c7bd3f072e35a1313177fd026f692 *inst/doc/ges.R
4f19f338bd996138d1e342a101f09434 *inst/doc/ges.Rmd
4c1449865049a8f29827dab71f709d23 *inst/doc/ges.html
61b9e3b3edb8e58370f30de93d686aba *inst/doc/es.html
1e6c7bd3f072e35a1313177fd026f692 *inst/doc/gum.R
ef1761018718beea9ca5db7d97e308e8 *inst/doc/gum.Rmd
a84bd7a1d101a6e1f7939169358af055 *inst/doc/gum.html
990d77b6e7229994f2ae259df6f121a1 *inst/doc/simulate.R
85ff7ec2014bf6182412035bd2f907bb *inst/doc/simulate.Rmd
bc1a6aee95dac4f40333d25df39042ad *inst/doc/simulate.html
5a7f046e1ce575ca001bcb0dfe2e347f *inst/doc/simulate.Rmd
d7823d257cb92b8f82fda6e8af56f851 *inst/doc/simulate.html
5834d35fd17557d8005dd308aa351bb2 *inst/doc/sma.R
8cb859d21072dff613ae6439ef6bdd91 *inst/doc/sma.Rmd
0072d5bf2ddf6ae45822be91a221adf5 *inst/doc/sma.html
a347f257f66e3fefb66e73b246d027e5 *inst/doc/sma.html
f2be0cff7be52faff06f2a377333a8c6 *inst/doc/smooth-Documentation.pdf
ab7560c1647929fa67f92f931009917d *inst/doc/smooth.R
1242fd5c9a50aa7079d1b1a4be05ec45 *inst/doc/smooth.Rmd
5e378ca92e877b924cb1a4eada4433f2 *inst/doc/smooth.html
27e418430dc1bec1d4e1f894bd65603d *inst/doc/smooth.Rmd
e80bc9e77ab68a338dfab5a0055caf00 *inst/doc/smooth.html
e568bdbdf1b30f81203586215b2a960c *inst/doc/ssarima.R
12ee105ca06d918914d7e00cd9164fc3 *inst/doc/ssarima.Rmd
38fc24a6029c2c78e455fd335e1c6279 *inst/doc/ssarima.html
a3679f2f69301841f36b7ce8c0552d92 *inst/doc/ssarima.html
00cfbce0c000855b2dde75eb6c7de1d1 *inst/doc/ves.R
8819bbfe9236db20d7bb0aee23a8787a *inst/doc/ves.Rmd
18e41b08da9fa8cf67fec1014177c1a7 *inst/doc/ves.html
f6d22009d7bf0a0f8bae6f4327f945f0 *inst/doc/ves.Rmd
468be0224cfb82780881cdf2ce108180 *inst/doc/ves.html
2371895b87d1d81e44aa2690461b50e7 *man/Accuracy.Rd
7642c1f2be2ee71655a25f16d8cb158a *man/auto.ces.Rd
a5b45dd2aded21b7fc3d6cec86e2aab5 *man/auto.gum.Rd
dada75adb5e0a86d89cf92cc0106f926 *man/auto.msarima.Rd
4b632db706406c2e530a15aead05db2c *man/auto.ssarima.Rd
3ab78c90750132df063b54f270191145 *man/ces.Rd
747c78361d5b07dc8579c8b8143a09b3 *man/cma.Rd
29db3246e818ef103b130f0ceb0a4656 *man/cma.Rd
682b961418970a7c88da89553be1a734 *man/covar.Rd
dd16d6c46ddbf5b04a274cd3cfd85d13 *man/error-measures.Rd
68f8d3cb677958faee393c88eff79983 *man/es.Rd
8ebd4387e4c50f16eaf0191f23d971ed *man/forecast.smooth.Rd
a34fbc6a7f7369dc8f7c2c73fcbfb91c *man/graphmaker.Rd
a34910501457499fbe4c659e75a1a933 *man/gsi.Rd
fd6e4f065a394c2448e457b72ee7fa1a *man/gum.Rd
f821975364d4bcbf53d31f60f3465eeb *man/hm.Rd
32b2b7aff602e20a65afce95fb5d0cf3 *man/isFunctions.Rd
89dc22dc220aa835a86284c44c8e899a *man/iss.Rd
4e6678e59825a7c42b926e6b7cc7b77c *man/msarima.Rd
0f3268c8a858c058a3fa8b8939767d2e *man/orders.Rd
Expand All @@ -85,34 +87,36 @@ e3fa8863cbd2961adf92020758b9023f *man/sim.es.Rd
d40bde53f07922f4644b9c4085ec462f *man/sim.gum.Rd
faae0aea4ae613e13182b7d58fbb09aa *man/sim.sma.Rd
91cc377a2c8c0be063e1c33d9b5dadd2 *man/sim.ssarima.Rd
07ab0615ae164345090a67a8376bf2b3 *man/sim.ves.Rd
2c89eafe613b249484e3e751e82900e4 *man/sim.ves.Rd
b0fc4c221b2ce4041102b564fcc9ec41 *man/sma.Rd
fc446ba91620105f4982f64f7e862fa6 *man/smooth.Rd
f415eb1fcb5aeb021c69d44e2f776f80 *man/smooth.Rd
f166347ff9aecf3ec766f044ffc5fd59 *man/smoothCombine.Rd
a0993d7de7f0b96415bb7b69f66b60ab *man/sowhat.Rd
c367f5db5c64590c66409c72dc7c276d *man/ssarima.Rd
bdcb405265aa21122486b35bf23203fc *man/ves.Rd
1c1d517691102d19d275762a1512d987 *man/ves.Rd
9ceb1e025b3bd37d79eb21bc0c86608f *man/viss.Rd
9859afefaf6500832d7469cadbbb28c8 *src/Makevars
a6850c2998c396b505104b800670480e *src/Makevars.win
04fa2a152380d558869cd7f82bc8c13e *src/RcppExports.cpp
a6173d40c122e266ed41576c49f4f337 *src/RcppExports.cpp
9fb0915a4e7ffe192150808e5e890c69 *src/registerDynamicSymbol.c
8a9d40377eb3431437af2dcd5444309b *src/ssgeneralfun.cpp
e7ab06f39e051936c3cfa64d080625cc *src/ssgeneralfun.cpp
71a168fa8cd1314f43dd0aeeea113dc9 *src/vSimulator.cpp
4119c3d7a998e2e8fcea82df2990622a *src/vssGeneral.cpp
3ff978aed1beb78736800b0bf9e709d1 *src/vssGeneral.cpp
4e0f43b23ba7abbb29b225614e88f276 *tests/testthat.R
ce0c82d2b00807f0783cb0b472a4b5a1 *tests/testthat/test_ces.R
f6f49c87209d1629de1df90f944aa27b *tests/testthat/test_es.R
d0802fb797489260bbc5d5c35df72182 *tests/testthat/test_ges.R
3d75b6cb57922b211cb49f57c8a460f3 *tests/testthat/test_ges.R
a312218ee6efc438b2d1c151666e13be *tests/testthat/test_iss.R
69e2784165cabce3cf19514c0907df6c *tests/testthat/test_simulate.R
5903710aa5287a11fcfba27b84b5e1a7 *tests/testthat/test_ssarima.R
9e08bd4ab8213411a400e978ca465058 *tests/testthat/test_ves.R
9a6306fb84d1f4cf62fdecb1966aa0ab *vignettes/ces.Rmd
aee1e5b2cf8c8bbc33a28000ea3e3489 *vignettes/es.Rmd
4f19f338bd996138d1e342a101f09434 *vignettes/ges.Rmd
85ff7ec2014bf6182412035bd2f907bb *vignettes/simulate.Rmd
ef1761018718beea9ca5db7d97e308e8 *vignettes/gum.Rmd
41c18d298a5e11c969396e8130fdbea2 *vignettes/library.bib
5a7f046e1ce575ca001bcb0dfe2e347f *vignettes/simulate.Rmd
8cb859d21072dff613ae6439ef6bdd91 *vignettes/sma.Rmd
1242fd5c9a50aa7079d1b1a4be05ec45 *vignettes/smooth.Rmd
f2be0cff7be52faff06f2a377333a8c6 *vignettes/smooth-Documentation.pdf
27e418430dc1bec1d4e1f894bd65603d *vignettes/smooth.Rmd
12ee105ca06d918914d7e00cd9164fc3 *vignettes/ssarima.Rmd
8819bbfe9236db20d7bb0aee23a8787a *vignettes/ves.Rmd
f6d22009d7bf0a0f8bae6f4327f945f0 *vignettes/ves.Rmd
15 changes: 13 additions & 2 deletions NAMESPACE
Expand Up @@ -25,6 +25,7 @@ S3method(logLik,iss)
S3method(logLik,smooth)
S3method(logLik,smooth.sim)
S3method(logLik,viss)
S3method(logLik,vsmooth)
S3method(modelName,Arima)
S3method(modelName,ar)
S3method(modelName,default)
Expand Down Expand Up @@ -66,7 +67,6 @@ S3method(print,smooth.forecast)
S3method(print,smooth.sim)
S3method(print,viss)
S3method(print,vsmooth)
S3method(sigma,ets)
S3method(sigma,smooth)
S3method(sigma,vsmooth)
S3method(simulate,smooth)
Expand Down Expand Up @@ -100,10 +100,19 @@ export(forecast)
export(forecast.smooth)
export(ges)
export(getResponse)
export(graphmaker)
export(gsi)
export(gum)
export(ham)
export(hm)
export(is.iss)
export(is.msarima)
export(is.smooth)
export(is.smooth.forecast)
export(is.smooth.sim)
export(is.smoothC)
export(is.viss)
export(is.vsmooth)
export(is.vsmooth.sim)
export(iss)
export(lags)
export(modelName)
Expand All @@ -130,6 +139,7 @@ import(Rcpp)
import(zoo)
importFrom(forecast,forecast)
importFrom(forecast,getResponse)
importFrom(forecast,is.ets)
importFrom(graphics,abline)
importFrom(graphics,layout)
importFrom(graphics,legend)
Expand All @@ -143,6 +153,7 @@ importFrom(greybox,BICc)
importFrom(greybox,dlaplace)
importFrom(greybox,ds)
importFrom(greybox,errorType)
importFrom(greybox,graphmaker)
importFrom(greybox,nParam)
importFrom(greybox,plaplace)
importFrom(greybox,pointLik)
Expand Down
21 changes: 21 additions & 0 deletions NEWS
@@ -1,3 +1,24 @@
smooth v2.4.7 (Release data: 2018-11-30)
==============

Changes:
* graphmaker() is now moved to greybox package.
* Moved sigma.ets() to greybox package.
* pls.smooth() returns more or less reasonable values, when the model overfits the data.
* A set of is-functions, checking whether the object is produced by smooth functions.
* New function - gsi() - ETS with Group Seasonal Indices. This is based on VES with some restrictions. The work in progress...
* The number of degrees of freedom in vector models (ves and gsi) is now calculated per series, not overall. This corresponds to Lutkepohl (2005), p.75.
* Minor updates in the vignettes for ves with references to Lutkepohl and a couple of papers.
* ETS(M,Z,Z) now returns correct semi and non parametric intervals in case of intermittent data.
* Given the recent update in greybox, changed the "b" to "scale" in distribution functions.

Bugfixes
* ETS(M,X,X) sometimes could not be optimised because of the too high smoothing parameters values and negative initials. This should be fixed now.
* sim.ves() wasn't working correctly in case of AAA models and provided initials.
* The error generated in sim.ves() was always multiplied by the initial state, so if it was zero, then nothing would happen.
* Found bug due to which the exogenous variables wer ignored for the forecasts from ETS(M,Z,Z) models.


smooth v2.4.6 (Release data: 2018-08-25)
==============

Expand Down
4 changes: 2 additions & 2 deletions R/RcppExports.R
Expand Up @@ -9,8 +9,8 @@ polyMultwrap <- function(polyVec1, polyVec2) {
.Call('_smooth_polyMultwrap', PACKAGE = 'smooth', polyVec1, polyVec2)
}

initparams <- function(Ttype, Stype, datafreq, obsR, obsallR, yt, damped, phi, smoothingparameters, initialstates, seasonalcoefs) {
.Call('_smooth_initparams', PACKAGE = 'smooth', Ttype, Stype, datafreq, obsR, obsallR, yt, damped, phi, smoothingparameters, initialstates, seasonalcoefs)
initparams <- function(Etype, Ttype, Stype, datafreq, obsR, obsallR, yt, damped, phi, smoothingparameters, initialstates, seasonalcoefs) {
.Call('_smooth_initparams', PACKAGE = 'smooth', Etype, Ttype, Stype, datafreq, obsR, obsallR, yt, damped, phi, smoothingparameters, initialstates, seasonalcoefs)
}

etsmatrices <- function(matvt, vecg, phi, Cvalues, ncomponentsR, modellags, fittertype, Ttype, Stype, nexovars, matat, estimpersistence, estimphi, estiminit, estiminitseason, estimxreg, matFX, vecgX, gowild, estimFX, estimgX, estiminitX) {
Expand Down
2 changes: 1 addition & 1 deletion R/automsarima.R
Expand Up @@ -728,7 +728,7 @@ auto.msarima <- function(data, orders=list(ar=c(3,3),i=c(2,1),ma=c(3,3)), lags=c
updateX=updateX, persistenceX=persistenceX, transitionX=transitionX,
ICs=ICs,ICw=icWeights,cf=NULL,cfType=cfType,accuracy=errormeasures);

bestModel <- structure(bestModel,class="smooth");
bestModel <- structure(bestModel,class=c("smooth","msarima"));
}
else{
#### Reestimate the best model in order to get rid of bias ####
Expand Down
4 changes: 2 additions & 2 deletions R/cma.R
Expand Up @@ -2,7 +2,7 @@
#'
#' Function constructs centered moving average based on state space SMA
#'
#' If the otder is odd, then the function constructs SMA(order) and
#' If the order is odd, then the function constructs SMA(order) and
#' shifts it back in time. Otherwise an AR(order+1) model is constructed
#' with the preset parameters:
#'
Expand Down Expand Up @@ -90,7 +90,7 @@ cma <- function(data, order=NULL, silent=TRUE){
}

##### data #####
if(any(class(data)=="smooth.sim")){
if(any(is.smooth.sim(data))){
data <- data$data;
}
else if(class(data)=="Mdata"){
Expand Down

0 comments on commit ecaf3fb

Please sign in to comment.