Generate synthetic observations

Share:

Description

Generate synthetic observations

Usage

1
sim(a, n = 100)

Arguments

a

ARMA model

n

Number of synthetic observations required

Details

The ARMA model is a list with the following components.

phi Vector of AR coefficients (index number equals coefficient subscript)
theta Vector of MA coefficients (index number equals coefficient subscript)
sigma2 White noise variance

Value

Returns a vector of n synthetic observations.

Examples

1
2
3
a = specify(ar=c(0,0,.99))
x = sim(a,60)
plotc(x)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.