sim: Generate synthetic observations

View source: R/itsmr.R

simR 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)

itsmr documentation built on Aug. 6, 2022, 9:08 a.m.