nginar.sim: Function nginar.sim

Description Usage Arguments Value References See Also Examples

View source: R/sim.R

Description

Simulate from an Inar model

Usage

1
nginar.sim(n, alpha, mu, n.start = 150)

Arguments

n

A strictly positive integer.

alpha

a vector of INAR coefficients.

mu

a vector.

n.start

the length of 'burn-in' period. If na, the default, a reasonable valve is computed.

Value

A time-series object of class "ts".

References

Ristic, M.M., Bakouchb, H.S. and Nasti, A.S. (2009) A newgeometricfirst-orderinteger-valuedautoregressive (NGINAR(1)) process . Journal of Statistical Planning and Inference, 139, 2218–2226.

See Also

nginar

Examples

1
2
3
# A new geometric INAR simulation
ts.sim <- nginar.sim(n = 100, alpha = 0.4, mu = 2)
ts.plot(ts.sim)

projecttsinteger/tsintegerpackage documentation built on May 26, 2019, 8:34 a.m.