
Hello,
Does IRIS have a maximum number of lag and lead in model class?
The maximum lag in my model is 20, but the maximum lag in xVector (with get(...,'xVector')) is 19. The same thing happens with the maximum lead.
Best,
Gabriel


Coordinator
Jan 29, 2015 at 5:00 AM

Besides the RAM on your computer there should be no constraints. In testing I am also unable to encounter any restrictions. I am able to solve models with leads and lags of 1000 on my little old laptop.


Coordinator
Jan 29, 2015 at 12:18 PM

There is, of course, no limit on lags/leads. This is simply the standard way how firstorder difference state space equations are constructed in models with more than t1 lags (and this has nothing to do with IRIS).
If you have a model like
w = 0.8*w(t1) + 0.4*w(t2) + epsilon
your state vector, i.e. xVector, is x := [w; w(t1)], i.e. always one lag less than what appears in the equations. This is because the firstorder difference matrix/vector version corresponding to the above equation is given by
A x = B*x(t1) + D*epsilon
where A = [1,0 ; 0,1] and B = [0.8,0.4 ; 1,0] . The t2 lag pops up automatically on the righthand side, and hence there is no need to include it in the x vector.
Best,
J.



I should have think about the rewriting in VAR(1).
Sorry for this too simple question.
Best,
Gabriel

