sim {itsmr}R Documentation

Generate synthetic observations

Description

Generate synthetic observations

Usage

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

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

[Package itsmr version 1.10 Index]