Skip to content

Commit

Permalink
version 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
config-i1 authored and cran-robot committed Apr 21, 2019
1 parent 1473c34 commit c158348
Show file tree
Hide file tree
Showing 43 changed files with 2,721 additions and 634 deletions.
12 changes: 7 additions & 5 deletions DESCRIPTION
@@ -1,8 +1,8 @@
Package: greybox
Type: Package
Title: Toolbox for Model Building and Forecasting
Version: 0.4.1
Date: 2019-01-26
Version: 0.5.0
Date: 2019-04-20
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/greybox
Expand All @@ -19,14 +19,16 @@ Description: Implements functions and instruments for regression model building
License: GPL (>= 2)
Depends: R (>= 3.0.2)
Imports: forecast, stats, graphics, utils, lamW, numDeriv, nloptr
LinkingTo: Rcpp
Suggests: smooth, doMC, doParallel, foreach, testthat, rmarkdown, knitr
Enhances: vars
RoxygenNote: 6.1.1
VignetteBuilder: knitr
Encoding: UTF-8
NeedsCompilation: no
Packaged: 2019-01-27 19:18:00 UTC; config
NeedsCompilation: yes
Packaged: 2019-04-19 20:23:28 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: 2019-01-27 22:50:47 UTC
Date/Publication: 2019-04-21 15:20:07 UTC
74 changes: 42 additions & 32 deletions MD5
@@ -1,65 +1,73 @@
2cab42d616034896be6a1d2d3cfb6479 *DESCRIPTION
d1982d7e39d043979231b7d521faecf7 *NAMESPACE
e4e1741b571f9511cb1fb664adf2feb8 *NEWS
5120e6f9fd3f26e9466848f468f63a05 *DESCRIPTION
a59fdaba5a2d59f5c9616ef6e9dbf4dc *NAMESPACE
89dc95af2ca3d643a1bd3153da39ebc4 *NEWS
b04f00196442fad912053f13321c737f *R/RcppExports.R
85c21a9b53ef02d0e144fc10457e8299 *R/alaplace.R
d2ccb3f8c09fa2cbc34de0d160f7d8f0 *R/alm.R
03e8b2c483efe8bc4e7a1cd82a788777 *R/alm.R
30cb2968efe444dce761b47aa481fdfd *R/association.R
8b20ed80c388c24e107b84d7963d9cc6 *R/cramer.R
980eb35be034081016d199d5de4cc6e7 *R/determination.R
6c2c272c7f476538f72df85e976f5feb *R/determination.R
7dbc8c821cf84f94a9d89dd3c7b3645c *R/error-measures.R
8a9e233ba5a65a27944d0d85bd94a6be *R/fnorm.R
67e39cdfe12ce723b1276a4b858a3bde *R/graphmaker.R
cbc4215ab53b8b6b604a133e50826f24 *R/graphmaker.R
0f32d843d2182f6d220d7f6bed8853ff *R/greybox-package.R
816dff34a584c66c3469dd6e78991a42 *R/isFunctions.R
10b327bb93afbd6a69ad57b78d31600b *R/laplace.R
d73dc71ea7cc44bc662da8b41084c01a *R/lmCombine.R
b22aba8f6c7c07801630e99ae07cb53b *R/lmDynamic.R
7d3a2c44903766f9276014d673470561 *R/lmCombine.R
0cfeacafc5f325c792963572844a4dfd *R/lmDynamic.R
c6f59f39b989d287ce0b6b816f3ea10c *R/mcor.R
6c8eea505be34a8a8e5089b39b0fc57a *R/methods.R
88c917c5d254e25ec7143eaf1279bdca *R/methods.R
45caedf18e0295d9337600cd8b4db28b *R/nemenyi.R
022200661fa52a9b2a1d40ad92f736b0 *R/rmc.R
76ae2c970424270b4b4e51fe3685e08e *R/rmc.R
18459294b633e7c031b1b516459c0c2d *R/ro.R
52013bcf9dc41a285a6ce7e52b6d0e73 *R/spread.R
ec8fd472a6e176f6f0e4e3531933bbb2 *R/stepwise.R
f51bd47573c6ae96dde9b4948e9ac6a6 *R/stepwise.R
9bc298937656a271c984d7b44ca69acc *R/svet.R
b3386e40999273985e10aa224e55d8b7 *R/tableplot.R
ade567ae65171c7757b3c200965dff97 *R/tplnorm.R
285a51bfeacb339b1c6b2cf2ce03a84c *R/xregExpander.R
f818b81c6bf3b90cf6f56d537cd2fd33 *R/xregExpander.R
cf91a0f5526bc577ebea8c22aae476c8 *R/xregMultiplier.R
c8ca8da991da58fca34512d43083207c *R/xregTransformer.R
87257779580bacd70b539aeb02464969 *R/zzz.R
1075e3508eeb67f7bb396334cae9552a *README.md
e72799b3c4cef60d6b06d3875be0714a *build/partial.rdb
620aff92f8390742bfff78921c022b46 *R/xregTransformer.R
44ef5a5acc7030f87429da3f638a8bf9 *R/zzz.R
c21ca491ef7a1f8601700175d6c4220c *README.md
9b7278bfbfa7380d961abc96c8a7ddc8 *build/partial.rdb
a5d02f5a2e927d5630fb9e824580c94f *build/vignette.rds
d55e2bf52696877dcb11270662c19a9f *inst/doc/alm.R
69dcf24a26d0ca7841e7d30d98fa25af *inst/doc/alm.Rmd
ef0f19a6e5796aa7b4f96b51c8e43a75 *inst/doc/alm.html
b8849ab68567bef8294971d1a1f8062f *inst/doc/alm.R
77f5c1698b0805b4ee08c71a94262ab7 *inst/doc/alm.Rmd
5337e48da483402ba01af9335a9e949f *inst/doc/alm.html
34b8d6dbd9447295256603c890809251 *inst/doc/greybox.R
c578076a29292091275db1e1eff4e46c *inst/doc/greybox.Rmd
dde07ce40c2b19f3b42a6a0f14c9d1d6 *inst/doc/greybox.html
47b097201bb516498457f3c5c2c4e289 *inst/doc/greybox.Rmd
5fb17f8c949e6c6bba0b10fc769e0b00 *inst/doc/greybox.html
06c0f9122123824d32350fe08d2602f1 *inst/doc/maUsingGreybox.R
993abaa870428627b3e228fbaafa0c0e *inst/doc/maUsingGreybox.Rmd
b9dfed36a3fbbc9acf7f6378c69576e6 *inst/doc/maUsingGreybox.html
bc6bf27c35be861795863486e6d8eb7a *inst/doc/maUsingGreybox.html
00c4b1df235949a7bfd28a0ce53c4c25 *inst/doc/ro.R
9dcae2bc19d86bfb5cddf8067823fe8d *inst/doc/ro.Rmd
7ec2361decd0c49c81f084915f2c0f24 *inst/doc/ro.html
3780694514d073eba4199ba8345c289c *man/InformationCriteria.Rd
0907e3b1c827605a4393544f60a79f87 *inst/doc/ro.html
289e8c5fa923dd43039cfabae03445a0 *man/InformationCriteria.Rd
b9020e719cce89a6877652348d1f44f5 *man/actuals.Rd
cb2b4b7e514fbfef6547dad20aa89f29 *man/alaplace-distribution.Rd
967c270d37e702020d182692f783f916 *man/alm.Rd
73ae0fc31d657def6a78895462c05676 *man/alm.Rd
4e4fa840514ec11ead4a8dd3788f25db *man/association.Rd
310d3560a6a2368d0db155f8ac76d5df *man/cramer.Rd
f3ede78db376113c8a0de586ec21477b *man/determination.Rd
d65ead5be787e26f70a7dc83dd86ba94 *man/error-measures.Rd
7107d89e7d1666697d37f3ffe06b2ff9 *man/errorType.Rd
b834b75de6d1a3223dab7d2c1ea33cf4 *man/fnorm-distribution.Rd
0bfa0b1b8e36d0cca59a6eaf5a39be41 *man/graphmaker.Rd
58720e6018613466fa87613f9e81243a *man/graphmaker.Rd
8870fe35712897a93bb2b2b9fd91f5a8 *man/greybox.Rd
c5e98637bfcfc56b63d3db17f1bf00b4 *man/hm.Rd
2d4f3a117c9753dc267093b56d53790b *man/isFunctions.Rd
7798f3873ab82e9a328544beca1a1985 *man/laplace-distribution.Rd
4f46c195e5f80c71f6b436a5518db7e2 *man/lmCombine.Rd
1e0c5244b4c9a9c84ab6fa99a6511001 *man/lmDynamic.Rd
65e76738c4d650cb902700d2a4459f0f *man/mcor.Rd
428d1b104fa8903de82b9383c5e3e4a0 *man/nParam.Rd
1ff2fe86ba023ed7a23b94a67398e07f *man/measures.Rd
2b38ed83d1094051dd1dfe6987d5ebcb *man/nparam.Rd
b3b5e1666ffdc078b439c058ff8b20c2 *man/pinball.Rd
adcbb10444b1715904a8270a96fba5f3 *man/pointIC.Rd
da71600510f3d0766a2eae52e6a64852 *man/pointLik.Rd
2329b1a5db9e98f6328ee8a888a6c7c1 *man/pointLik.Rd
c6ebc1c587ffc34c6161c9a0051dbaeb *man/polyprod.Rd
89dbf1349d86af07999975c0a3468d4b *man/predict.greybox.Rd
76b532e9db2f249cd5704ce73b63d92a *man/rmc.Rd
783f313b049ae8a234c5fd561e282987 *man/ro.Rd
Expand All @@ -68,11 +76,13 @@ da71600510f3d0766a2eae52e6a64852 *man/pointLik.Rd
32a1e1208afdd87e3a09e3e5f795be1d *man/stepwise.Rd
9d6dddb2e8a11c2b939bc71dde7466d1 *man/tableplot.Rd
35386b7aacb453e2d4a06e1a86e11272 *man/tplnorm-distribution.Rd
49e289cb1943bd3473975cdf2e190bd7 *man/xregExpander.Rd
f18a73c1ad722b3c5a7b0e1182e7d74d *man/xregExpander.Rd
ecaff1d893d0e2226b358df3b6e18cd8 *man/xregMultiplier.Rd
fba2f75ee5cadb591082ddba35e1e0f9 *man/xregTransformer.Rd
69dcf24a26d0ca7841e7d30d98fa25af *vignettes/alm.Rmd
c578076a29292091275db1e1eff4e46c *vignettes/greybox.Rmd
f12ae6912dd367d0f39d80dfcb5aca80 *man/xregTransformer.Rd
471a2428a7493a27c2f59c352b429357 *src/RcppExports.cpp
977761aa6ae19c9fe2466383536ea331 *src/polyMult.cpp
77f5c1698b0805b4ee08c71a94262ab7 *vignettes/alm.Rmd
47b097201bb516498457f3c5c2c4e289 *vignettes/greybox.Rmd
8401400e9158cfc020fa9477e42d1fd6 *vignettes/img/ROProcessCO.gif
da71fe35eb5beb45dc2cc8ef16da371a *vignettes/img/ROProcessCOCI.gif
7f2a09e79b06d202de45672aa9762d16 *vignettes/img/ROProcessNoCO.gif
Expand Down
42 changes: 37 additions & 5 deletions NAMESPACE
@@ -1,7 +1,11 @@
# Generated by roxygen2: do not edit by hand

S3method(AICc,default)
S3method(AICc,varest)
S3method(BICc,default)
S3method(BICc,varest)
S3method(actuals,alm)
S3method(actuals,default)
S3method(coef,greybox)
S3method(coef,greyboxD)
S3method(confint,alm)
Expand All @@ -12,13 +16,16 @@ S3method(errorType,default)
S3method(errorType,ets)
S3method(forecast,alm)
S3method(forecast,greybox)
S3method(getResponse,greybox)
S3method(logLik,alm)
S3method(nParam,alm)
S3method(nParam,default)
S3method(nParam,greyboxC)
S3method(nParam,logLik)
S3method(nobs,alm)
S3method(nobs,greybox)
S3method(nobs,varest)
S3method(nparam,alm)
S3method(nparam,default)
S3method(nparam,greyboxC)
S3method(nparam,logLik)
S3method(nparam,varest)
S3method(pAIC,default)
S3method(pAICc,default)
S3method(pBIC,default)
Expand Down Expand Up @@ -47,6 +54,7 @@ S3method(print,summary.greyboxC)
S3method(sigma,alm)
S3method(sigma,ets)
S3method(sigma,greybox)
S3method(sigma,varest)
S3method(summary,alm)
S3method(summary,greybox)
S3method(summary,greyboxC)
Expand All @@ -57,9 +65,22 @@ S3method(vcov,greyboxD)
S3method(vcov,lmGreybox)
export(AICc)
export(BICc)
export(MAE)
export(MAPE)
export(MASE)
export(MIS)
export(MPE)
export(MRE)
export(MSE)
export(RelAME)
export(RelMAE)
export(RelMIS)
export(RelRMSE)
export(actuals)
export(alm)
export(assoc)
export(association)
export(cbias)
export(cramer)
export(dalaplace)
export(determ)
Expand All @@ -71,6 +92,8 @@ export(dtplnorm)
export(errorType)
export(forecast)
export(graphmaker)
export(ham)
export(hm)
export(is.alm)
export(is.greybox)
export(is.greyboxC)
Expand All @@ -80,14 +103,18 @@ export(is.rollingOrigin)
export(lmCombine)
export(lmDynamic)
export(mcor)
export(measures)
export(nParam)
export(nparam)
export(pAIC)
export(pAICc)
export(pBIC)
export(palaplace)
export(pfnorm)
export(pinball)
export(plaplace)
export(pointLik)
export(polyprod)
export(ps)
export(ptplnorm)
export(qalaplace)
Expand All @@ -102,14 +129,18 @@ export(rmc)
export(ro)
export(rs)
export(rtplnorm)
export(sCE)
export(sMIS)
export(sMSE)
export(sPIS)
export(spread)
export(stepwise)
export(tableplot)
export(xregExpander)
export(xregMultiplier)
export(xregTransformer)
importFrom(forecast,Arima)
importFrom(forecast,forecast)
importFrom(forecast,getResponse)
importFrom(grDevices,rgb)
importFrom(graphics,abline)
importFrom(graphics,axis)
Expand Down Expand Up @@ -192,3 +223,4 @@ importFrom(stats,vcov)
importFrom(utils,head)
importFrom(utils,packageVersion)
importFrom(utils,tail)
useDynLib(greybox)
36 changes: 36 additions & 0 deletions NEWS
@@ -1,3 +1,39 @@
greybox v0.5.0 (Release data: 2019-04-20)
==============

Changes:
* New function - polyprod(), returning the product of two polynomials.
* alm() now has parameters ar and i, which define the order of respective elements of ARIMA model.
* alm() now checks for stationarity of AR.
* alm() now produces the fitted for the zero observations.
* alm() now accepts parameters for the nloptr.
* In case of occurrence model, the expected entropy is added to the likelihood.
* Tuning of the initials for the recursive model.
* alm() with distribution=c("pnorm","plogis") and ARI(p,d) now produces adequate estimates of probability and forecasts.
* Error measures imported from smooth. Accuracy() function is renamed into measures().


greybox v0.4.2 (Release data: 2019-03-10)
==============

Changes:
* nParam, nobs, sigma and AICc, BICc methods for the "varest" class of the functions for "vars" package. Should allow selection using the corrected AIC and BIC.
* graphmaker() now does not need for forecast to start at the right place. If start(actuals)=start(forecast), it will place forecast at the end.
* graphmaker() now also allows not to reset par, so that you can add arbitrary elements to the graph.
* rmc() now returns the exponentiated values of means and intervals in case of distribution="dlnorm".
* nParam() method has been renamed into nparam().
* A new method - actuals(), which returns actuals from the model (similar to "getResponse" of forecast package).
* nobs() and actuals() now also have a hidden parameter all, which determines, whether to return all the values or only demand sizes in case of occurrence model. The default behaviour for nobs is FALSE, and for actuals is TRUE. This is driven by the functions relying on these methods.
* xregExpander() now allows specifying how to fill in the gaps for the lagged variables.

Bugfixes:
* Fixed a bug in stepwise(), due to which the wrong fitted values were generated.
* Annoying bug with occurrence!="none" models and factors.
* lmCombine and lmDynamic did not work correctly with NAs.
* alm produced errors for simple regressions and occurrence.
* stepwise would produce errors, when there was no variability in the data.


greybox v0.4.1 (Release data: 2019-01-27)
==============

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

#' This function calculates parameters for the polynomials
#'
#' The function accepts two vectors with the parameters for the polynomials and returns
#' the vector of parameters after their multiplication. This can be especially useful,
#' when working with ARIMA models.
#'
#' @param x The vector of parameters of the first polynomial.
#' @param y The vector of parameters of the second polynomial.
#'
#' @template author
#'
#' @return The function returns a matrix with one column with the parameters for
#' the polynomial, starting from the 0-order.
#'
#' @seealso \link[stats]{convolve}
#'
#' @examples
#'
#' polyprod(c(1,-2,-1),c(1,0.5,0.3))
#'
#' @useDynLib greybox
#' @export
polyprod <- function(x, y) {
.Call('_greybox_polyprod', PACKAGE = 'greybox', x, y)
}

0 comments on commit c158348

Please sign in to comment.