Description Usage Arguments Details Value References Examples
Simulate from an INAR(p) model.
1 2 3 4 5 6 7 8 | inar.sim(
n,
alpha,
par,
thinning = c("binomial", "nbinomial", "poisson"),
innovation = "PO",
n.start = NA
)
|
n |
A strictly positive integer given the length of the output series. |
alpha |
A vector of INAR coefficients. |
par |
A vector with the innovation process parameters. |
thinning |
Character; specification of the thinning operator.
Currently, binomial ( |
innovation |
Character specification of the innovation process, see details. |
n.start |
The length of 'burn-in' period. If |
There are some discrete distributions available for the
innovation process specification. The following table display their
names and their abbreviations to be passed to innovation()
.
Distribution | Abbreviation | Parameters | |
Bernoulli | "BE" | 0 < theta < 1 |
|
BerPoi | "BP" | theta > 0; 0 < phi < 1 |
|
BerG | "BG" | theta, phi > 0 |
|
Geometric | "GE" | theta > 0 |
|
Mean-Parameterized COM-Poisson | "CP" | theta, phi > 0 |
|
Negative Binomial | "NB" | theta, phi > 0 |
|
Poisson | "PO" | theta > 0 |
|
A time-series object of class "ts"
.
Du, J.G. and Li,Y. (1991). The integer-valued autorregressive (INAR(p)) model. Journal of time series analysis. 12, 129–142.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.