Here is what I tried in my main file:
- Code: Select all
@#define cases = [ "1", "2",...]
VARIABLES BLOCK
PARAMETERS BLOCK
model(linear);
EQUATIONS THAT ARE THE SAME FOR ALL CASES
[b]@#include "{case}.mod" [/b] // to include the case specific equations
end;
VAROBS
ESTIMATED_PARAMS BLOCK
ESTIMATED_PARAMS_INIT BLOCK
@#for case in cases
ESTIMATION CMD
@#endfor
it tells me: ERROR in macro-processor: mainfile.mod:36.1: Could not open {case}.mod
the same happens if I try to loop over the whole code and not only the estimation cmd.
is this simply a syntax mistake or is my thinking wrong here?