Hi,
I am trying to simulate data from a DSGE model, which is instantenousely hitted by several shocks. Indeed, shocks arrive form period 1 to n. When giving an integer number to n (n=500), my program runs well. However, the program shows error when n is an expression:
periods 1:expression ;
instead of
periods 1:n ;
My question: Is there a way to introduce expression into n instead of an integer number?
To see more my problem, you find attached my codes.