I would like to run vector autoregression (VAR) of the annual inflation rate of a consumption category and the annual year-on-year change of its weight to the inflation.
I have a R time series object each for inflation rate and change in weight in the following format (both matrices have the SAME category labels) :
food clothing fuel ...
2001
2002
2003
...
Was stuck on this problem.