statement in loop in recursive dynamic CGE

Problems with modeling
Post Reply
atabesh
User
User
Posts: 5
Joined: 4 years ago

statement in loop in recursive dynamic CGE

Post by atabesh »

HI
I try to make a recursive dynamic CGE model alike Thurlow's model(Appendix). but I think my model is wrong. I do not have anyone to help me
I do not know where I write QF(F, A,T+1) In LOOP.
I do not have any code for learning.please help me
Last edited by atabesh 4 years ago, edited 1 time in total.
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: statement in loop in recursive dynamic CGE

Post by Renger »

Hi

Take a closer look at this example from the model library.
It contains all the "tricks" to get a model to run recursively.
Another example (although using MPSGE) might also give you some study material (the recursive loop can be found from the line "loop(t$(ord(t) le 21)," onwards.

Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Post Reply