Learn R Programming

itsmr (version 1.10)

sim: Generate synthetic observations

Description

Generate synthetic observations

Usage

sim(a, n = 100)

Value

Returns a vector of n synthetic observations.

Arguments

a

ARMA model

n

Number of synthetic observations required

Details

The ARMA model is a list with the following components.

phiVector of AR coefficients (index number equals coefficient subscript)
thetaVector of MA coefficients (index number equals coefficient subscript)
sigma2White noise variance

Examples

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

Run the code above in your browser using DataLab