I am trying to fit a VARMAX (vector autoregressive moving-average with exogenous variables) model to some synthetically generated data using the MTS library available in R. I found that there is only one function for fitting models with exogenous variables, it is designed for only VAR models and is called VARX. Reading in the literature, I found that there is a method for finding the VARX representation of the VARMAX model (not that straightforward), thus, finding the VARX representation of the VARMAX model, the VARX function could be used. My question is: Is there any method already implemented in R that transforms VARMAX, VARMA, VMAX into their corresponding VAR representation or how the VARX function must be used for fitting models of this type?

In the following reproducible example is generated an VARMAX model intending to estimate their parameters with VARX function:

Sigma <- matrix(c(1,0.2,0.2,1),ncol=2)
exoge1<-serie_varmax[,1]+(0.3*seq(1,60)) #Exogenous variable influencing only the first variable

As aforementioned, I am wondering how to estimate the VARMAX coefficients using VARX function.

  • $\begingroup$ What is the actual question? How to turn a VARMAX model into a VARX model? Or, given an estimated VARX model, how to turn it back into a VARMAX model? Or yet something else? $\endgroup$ – Richard Hardy Aug 18 '15 at 16:21
  • $\begingroup$ Richard, my main question is how to turn a VARMAX model into a VARX model in order to use the VARX function. $\endgroup$ – Hector Aug 18 '15 at 16:37
  • $\begingroup$ You could perhaps refine your original post to highlight that. Also, could you post the source where you found the method for representing VARMAX as VARX? Have you tried it? If so, how far did you get? Is there a particular problem you are stuck at? $\endgroup$ – Richard Hardy Aug 18 '15 at 16:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.