Basic rule of programming:
If it works, don't touch it
The course is based on examples written in
GAMS software and
MPSGE economic modeling
language. Alternative CGE modeling softwares - GEMPACK, AIMMS, EXCEL, MATLAB - will not be
discussed here.
There is available a
free student version of GAMS. This is a limited
version, but fully sufficient for learning the basics of CGE modeling. For
instalation on macOS, if you encounter any problems, use the
WineBottler package.
The examples presented here were prepared by
Thomas F. Rutherford,
Bruce A. McCarl,
Rob Dellink,
Andres Ramos,
Hodjat Ghadimi,
and myself. They were prepared in the classic GAMS environment, called
IDE
- Integrated Development Environmnet (based on Pascal/Delphi).
The current environment is
STUDIO (based on C++).
However, the core logic remains compatible regardless of the GAMS environment
because the modeling language (AML - Algebraic Modeling Language) and the engine
(sending a DOS instruction to the GAMS executable) remain the same.
For those interested to skip graphical interface (Studio or IDE), the command-line interface
(DOS)
can be used to run GAMS and MPSGE. For this purporse I recommend the free software
Emacs,
although I use the paid one Epsilon
(such softwares allow to use one and only one editor for different tasks - Gams, Latex, Python, R,
etc. - instead of having to learn several editors). For executing GAMS from
other environments
(Python, Matlab, Visual Basic, R, etc.) is possible without using
APIs
(Application Programming Interfaces).
The solutions to the exercises were prepared by my students and myself.
Techniques for estimating
SAM will not be discussed in these lectrues. Examples of
such techniques are available in the GAMS model library (CESAM.gms and CESAM2.gms)
and the PEP model library
(SAMBAL, GPCEMA).
Details of entropy theory and matrix balancing techniques are described by
M.Thissen and H.Loefgren,
R.A.McDougall,
A.Golan. The baselines for dynamic CGE models are explained in the
Journal of
Global Economic Analysis.
EXAMPLE 2: uniform
scaling (part II), MRS(part II), reference prices (part II), normalization of variables -
solution;
supplement solution (in Polish):
1;
answers
2a,
b
(see also exercises for lecture 5)
EXAMPLE 3: leisure (part I), productivity, elasticity of substitution (part I),
functional forms (part II), loops -
solutionanswers
3a,
b
EXAMPLE 4: autarchy versus open economy, second welfare theorem,
elasticity of substitution (part II), loop,
money illusion (part I) -
solution;
answers
4a,
b,
c
to add examples of income tax (M32), unemployment (M36),
capital accumulation (M37), invenotires,
negative savings (ers82mcp.gms in GAMS model library, stage1.gms at cgemod.org.uk)