General equilibrium economic modelling language and solution framework
Sample models
The following examples are intended to help users get started using gEcon package. The majority of these models has been written for testing purposes during gEcon development and their results have been compared to those obtained in other software.
In order to run these models, save them (.gcn files with accompanying .R scripts) on disk, load gEcon package under R, and run the accompanying R scripts (in the same directory, after setting R working directory there).
For information about the language and the R interface please refer to the Users' guide, which can be found under the documentation tab.
Unless otherwise stated, the models are distributed under the same licence as gEcon package, which can be found here.
Static / CGE models
Model | Model code (.gcn) and R script |
Documentation (.pdf) and model logfile |
---|---|---|
Static pure exchange | pure_exchange.gcn pure_exchange.R |
pure_exchange.pdf pure_exchange.model.log |
Static pure exchange using templates | pure_exchange_t.gcn pure_exchange_t.R |
pure_exchange_t.pdf pure_exchange_t.model.log |
Basic CGE using templates | cge_templ.gcn cge_templ.R |
cge_templ.pdf cge_templ.model.log |
Basic CGE with government | cge_gov_templ.gcn cge_gov_templ.R |
cge_gov_templ.pdf cge_gov_templ.model.log |
Basic CGE with calibration (Leontief technology) | cge_calibration.gcn cge_calibration.R |
cge_calibration.pdf cge_calibration.model.log |
Basic CGE with calibration (Cobb-Douglas technology) | cge_calibration_cd.gcn cge_calibration_cd.R |
cge_calibration_cd.pdf cge_calibration_cd.model.log |
Simple CGE model calibration using gEcon.iosam package (licence) | cge_calibr_iosam.gcn cge_calibr_iosam.R |
cge_calibr_iosam.pdf cge_calibr_iosam.model.log |
CGE model for fiscal policy impact assessment developed at the Department for Strategic Analyses (DAS) at the Chancellery of the Prime Minister of the Republic of Poland (licence). For legal reasons, the actual data is not provided. | cge_DAS.gcn cge_DAS.R |
cge_DAS.pdf cge_DAS.model.log |
CGE model with international trade developed at the Department for Strategic Analyses (DAS) at the Chancellery of the Prime Minister of the Republic of Poland (licence). The model is calibrated to an artificially generated data set. | cge_DAS-int.gcn cge_DAS-int.R init_par.csv init_val.csv |
cge_DAS-int.pdf cge_DAS-int.model.log |