-
Removed the the
good
package since it is not available anymore on CRAN. In next updates I'm considering to substitute thegood::rgood
function by using theVGAM
package. -
Added the
disc_unif
,mix_bin
andmix_bin_negbin
arrival options into thegenINAR
function. Solving minor bugs. -
General debugging and modifications only for the Generalized Poisson case in
SMC_Cpp
function: In particular, I am trying to figure out how to deal with some limit cases in which the test statistic is not defined, that is when$p_{x{t}-1}$ and/or$p_{x{t}}$ are zero. -
Introduced the
SMCtest
wrapper function for the Sun-McCabe Score test. TheINARtest
function will be deprecated in the next few updates. -
[testing] Playing with some potential solutions for parallel computing in the C++ code.
-
Added Rho test statistic that will be used as benchmark for the other tests.
-
Added a
INARtest
wrapper function to call the INAR tests.
- [testing] Added Harris-McCabe test statistic.
- Bootstrap procedures are still on development phase.
- Added parametric and semiparametric bootstrap procedures for the Sun-McCabe Score test.
- [testing] Preparing the support of the Harris-McCabe test statistics for the upcoming 0.2 update
- Added parametric and semiparametric bootstrap procedures for the Sun-McCabe Score test in case of Generalized Poisson innovations.
-
Substituted the
NMF
(functionfcnnls
) library withRcppML
(functionnnls
), now the package Biobase is no more an upstream dependency (issue 1). -
Solved a bug in
INARp_cpp
: alphas and lagged values were inverted. -
Added two new blocks of scripts:
genericfuns.R
andutils.R
for the upcoming 0.1 update. -
Preparing the main frontend function
INARfit
for the upcoming 0.1 update:- Introduced the new
INAR
class; - Added some generic functions;
- YW and CLS estimation are available;
- Minor changes and few corrections.
- Introduced the new
-
Added the Negative Binomial SMC parametric bootstrap test and the PIT experimental.
- NOTE: even if they seem to work properly, SMC tests need some cleaning and a thorough check!
- Added a new test in
test.R
that follow the same concept of the previous one:- Added the
SMCboot.test
function that computes the semiparametric or parametric bootstrap Sun-McCabe Score test statistics (with Poisson or Negative Binomial arrivals for the moment). The function returns an object of classhtest
. - In future the the C++ routines that compute the tests will become internal.
- Added the
- Added a new script, namely
test.R
, that will include all the front-end test functions.- Added the
SMC.test
function that computes the Sun-McCabe Score test statistics (with Poisson or Negative Binomial arrivals for the moment). The function returns an object of classhtest
. - In future the bootstrapped version of the above tests will be added and the C++ routines that compute the tests will become internal.
- Added the
- Preparing for the first CRAN submission:
- Minor changes and few modifications;
- Script cleaning.
-
Cleaning and few modifications.
-
Changed the formula regarding he Negative Binomial parameters' estimation acording with Sun, McCabe (2013).
-
Parametric bootstrap of INAR with Negative Binomial innovations is now available, although it needs some testing.
-
Added downloads dataset, source Weiss (2008).
-
First build of the package vignette.
-
Added package sticker.
-
Implementing the Sun-McCabe bootstrap test. This cose is still in development and works properly only for INAR(1) processes.
- Improvement of the
INARfit.R
code to fit INAR(p) models. NowINARfit()
performs a full Y-W estimation from a Poisson INAR(r) family, following the results of Du and Li. Some additional Rcpp utility functions (scriptXmoments.cpp
) have been added:Xmoments()
[in development], compute the first two moments for the original series and the residual series. As output it returns mean and variance of both the starting and residual series, and the estimated residual series;Xresid()
[in development], generates the series of residual values.
- First
INARfit.R
code to fit INAR(p) models:INARfit()
[in development], fitting an INAR(p) process, by using several procedures. At the momemt is hardcoded and works only for the Poisson case and only YW is provided;est_mom()
[in development], estimation of innovations' parameters. At the momemt is hardcoded and works only for the Poisson case.
-
Generalization of genINAR function, now it generates INAR(p) models nstead of INAR(1).
-
Added stationarity condition check in
genINAR()
function. -
The old
par
input vector contained both the thinning operator (at the first position) and innovations' parameters, now this vector is split is two:a
andpar
, where:a
contains the p thinning parameters of the INAR(p) to be generatedpar
contains exclusively the innovations' parmeters
-
Development of the C++ part to generate INAR(p) processes
- deleted INAR1_gen.cpp and included the routine
INAR1\_ cpp
in INARp_gen.cpp - development of the more general routine
INARp\_ cpp
; - the line
sim = clone(resid)
was added to avoid the shallow copy effect; - INARp_gen.cpp contains the routine to generate an INAR(p) process;
- at the moment
INAR1\_ cpp
si obsolete, after some testing it will be deleted.
- deleted INAR1_gen.cpp and included the routine
-
Updated
README.md
file. -
Added a
NEWS.md
file to track main changes among different versions. -
Added references.
-
DESCRIPTION
file updated- additions:
URL
,Roxygen
,Depends: R (>= 4.2.1)
,RdMacros
,LinkingTo
,RoxygenNote
; - modifications:
Depends: R (>= 4.2.1)
,Imports: Rcpp (>= 1.0.0)
,RcppArmadillo
,MASS
,Rdpack
.
- additions:
-
Initialization of the package, first settings.
-
First working version of the package:
- use of
Rcpp
andRccpARmadillo
to add C++ code; - a preliminary version of the function
inarGEN()
is implemented.
- use of