Skip to content

Commit 9b7db1a

Browse files
committed
Add example for GP2.
1 parent 5c08141 commit 9b7db1a

File tree

5 files changed

+27
-3
lines changed

5 files changed

+27
-3
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: coconots
22
Type: Package
33
Title: Convolution-Closed Models for Count Time Series
4-
Version: 2.0.1
5-
Date: 2025-07-24
4+
Version: 2.0.2
5+
Date: 2025-08-22
66
Authors@R: c(
77
person(given = "Manuel",
88
family = "Huth",

R/cocoSim.R

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,24 @@
3131
#'the simulation accurately captures the dynamics of the system being modeled.
3232
#' @author Manuel Huth
3333
#' @examples
34+
#' #First Order Model
3435
#' lambda <- 1
3536
#' alpha <- 0.4
3637
#' set.seed(12345)
3738
#'
3839
#' # Simulate using the RCPP implementation
3940
#' data_rcpp <- cocoSim(order = 1, type = "Poisson", par = c(lambda, alpha), length = 100)
41+
#'
42+
#' @examples
43+
#' # Second Order Model
44+
#' lambda <- 1
45+
#' alpha_1 <- 0.3
46+
#' alpha_2 <- 0.1
47+
#' alpha_3 <- 0.2
48+
#' eta <- 0.2
49+
#' data_j <- cocoSim(order = 2, type = "GP",
50+
#' par = c(lambda, alpha_1, alpha_2,alpha_3,eta),
51+
#' length = 100)
4052
#' @export
4153

4254
cocoSim <- function(type, order, par, length, xreg = NULL, init = NULL,

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
utils::globalVariables(c(
2-
"Time", "Observed", "Fitted", "Residuals", "Lag", "ACF"
2+
"Time", "Observed", "Fitted", "Residuals", "Lag", "ACF", "x", "p"
33
))

cran-comments.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
We have modified the LogLik S3 method as requested by the journal of statistical software in order to resubmit our paper about coconots to the journal. In order to have the submitted file in line with the CRAN version, we would like to update the CRAN version.

man/cocoSim.Rd

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)