Description Usage Arguments Value References See Also Examples
Simulate from an INAR model
1 | poinar.sim(n, order.max, alpha, lambda, n.start = NA)
|
n |
the length of outputs series. A strictly positive integer. |
order.max |
the integer component p is the INAR order. |
alpha |
a vector of INAR coefficients. |
lambda |
the mean of the poisson distribution. |
n.start |
the length of 'burn-in' period. If na, the default, a reasonable valve is computed. |
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 | # A Poisson INAR simulation
ts.sim <- poinar.sim(n = 100, order.max = 2, alpha = c(0.1,0.4),lambda = 2, n.start=200)
ts.plot(ts.sim)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.