simulate.hhh4lag | R Documentation |
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.
## 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,
...
)
This function is still being tested!!!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.