Generate Autoregressive Order p - Moving Average Order q (ARMA(p,q)) Model
Generate an ARMA(p,q) process with supplied vector of Autoregressive Coefficients (φ), Moving Average Coefficients (θ), and σ^2.
gen_arma(N, ar, ma, sigma2 = 1.5, n_start = 0L)
N |
An |
ar |
A |
ma |
A |
sigma2 |
A |
n_start |
An |
A vec
that contains the generated observations.
The Autoregressive order p and Moving Average order q (ARMA(p,q)) process with non-zero parameters phi[i] in (-1,1) for the AR components, theta[j] in (-1,+1) for the MA components, and sigma^2 in R^{+}. This process is defined as:
X[t] = sum(phi[p]*X[t-1]) + sum(theta[q]*W[t-1]) + W[t]
where
W[t] ~ N(0,sigma^2) iid
The innovations are generated from a normal distribution. The σ^2 parameter is indeed a variance parameter. This differs from R's use of the standard deviation, σ.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.