simulate.hhh4lag: Simulate "hhh4_lag" Count Time Series

simulate.hhh4lagR Documentation

Simulate "hhh4_lag" Count Time Series

Description

This function is the equivalent of surveillance::simulate.hhh4 for model fits of class hhh4lag, obtained from hhh4_lag or profile_par_lag. The arguments are the same as in surveillance::simulate.hhh4, the only difference being that y.start needs to be a matrix with object$control$max_lag rows and object$nUnit columns.

Usage

## S3 method for class 'hhh4lag'
simulate(
  object,
  nsim = 1,
  seed = NULL,
  y.start = NULL,
  subset = 1:nrow(object$stsObj),
  coefs = coef(object),
  components = c("ar", "ne", "end"),
  simplify = nsim > 1,
  ...
)

Details

This function is still being tested!!!


jbracher/hhh4addon documentation built on Feb. 16, 2024, 1:45 a.m.