Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


simts (version 0.1.1)

gen_arma11: Generate an ARMA(1,1) sequence

Description

Generate an ARMA(1,1) sequence given ϕ, θ, and σ2.

Usage

gen_arma11(N, phi = 0.1, theta = 0.3, sigma2 = 1)

Arguments

N

An integer for signal length.

phi

A double that contains autoregressive.

theta

A double that contains moving average.

sigma2

A double that contains process variance.

Value

A vec containing the MA(1) process.

Process Definition

The Autoregressive order 1 and Moving Average order 1 (ARMA(1,1)) process with non-zero parameters ϕ(1,+1) for the AR component, θ(1,+1) for the MA component, and σ2IR+. This process is defined as: Xt=ϕ1Xt1+θ1εt1+εt, where εtiidN(0,σ2)

Generation Algorithm

The function first generates a vector of white noise using gen_wn and then obtains the ARMA values under the above equation.

The X0 (first value of Xt) is discarded.

Details

The function implements a way to generate the xt values without calling the general ARMA function.