powered by
Compute and plot the impulse response function of a given VARMA model
VARMAirf(Phi = NULL, Theta = NULL, Sigma = NULL, lag = 12, orth = TRUE)
A k-by-kp matrix of VAR coefficients in the form Phi=[Phi1, Phi2, ..., Phip].
A k-by-kq matrix of VMA coefficients in the form Theta=[Theta1, Theta2, ..., Thetaq]
Covariance matrix (k-by-k) of the innovations.
Number of lags of impulse response functions to be computed
A logical switch to use orthogonal innovations. Deafult is to perform orthogonalization of the innovations.
The Psi-weight matrices
Impulse response functions
Tsay (2014, Chapter 3). Multivariate Time Series Analysis with R and Financial Applications. John Wiley. Hoboken, NJ.
VARMApsi command
# NOT RUN { p1=matrix(c(0.2,-0.6,0.3,1.1),2,2) th1=matrix(c(-0.5,0.2,0.0,-0.6),2,2) Sig=matrix(c(4,1,1,1),2,2) m1=VARMAirf(Phi=p1,Theta=th1,Sigma=Sig) # }
Run the code above in your browser using DataLab