Differences

This shows you the differences between two versions of the page.

Link to this comparison view

results.gms_outdated [2017/08/23 08:48] (current)
jfoure created
Line 1: Line 1:
 +====== Results.gms (Outdated) ======
  
 +''​Results.gms''​ calculates aggregates, change in welfare and other other variables. These calculations are made for two geographical breakdown: the one used for all the simulations and another one more aggregated. Both are defined in ''​Aggregation.xls''​. See [[Spreadsheet interface (Outdated)|spreadsheet interface (Outdated)]] for more details. Make sure you have the file ''​Definitions.gms''​ with the chosen aggregation in your MIRAGE directory.
 +
 +You can change the files ''​Indicateurs.gms'',​ ''​Variations.gms''​ and ''​Sorties.gms''​ if you want to add more variables to Excel output than by default. On the contrary, the files ''​PrixX.gms'',​ ''​PrixP.gms'',​ ''​Exp.gms'',​ ''​Imp.gms'',​ ''​Var.gms'',​ ''​Result_ini.gms''​ and ''​Result_var''​ must not be changed.
 +
 +===== Macroeconomic aggregates =====
 +
 +
 +===== Welfare measurement =====
 +Equivalent variation in a given year and a given country is defined as:
 +
 +$$
 +EV_{r,t} = E\left(P_{r,​t}^0,​U_{r,​t}\right)-E\left(P_{r,​t}^0,​U_{r,​t}^0\right)
 +$$
 +
 +===== Welfare decomposition =====
 +
 +
 +===== Results extraction =====
 +
 +==== Options ====
 +At the beginning of the file, you define the initial year used to display the initial level in Excel files.
 +<​code>​
 + ​$setglobal ini 2006 ! First year for results display
 +</​code>​
 +
 +By default, for most of variables only the last year is extracted for Excel. You can add other years by changing the subset t_. Be aware that the files risk to be very big if you add too many years.
 +<​code>​
 + ​SET t_(Temps);​
 + 
 + ​t_(Temps)$card(Temps) = yes;
 +</​code>​
 +==== Files ====
 +
 +Seven csv files per simulations are written in the subdirectory ''​Results''​. They have no specific name by default. You have two ways to define a name. ''​Results.gms''​ expects as a name a control variable called ''​simu''​. You can define it on the command line like in [[Running a simulation with GAMS (Outdated)#​MIRAGE.gms|MIRAGE.gms (Outdated)]] or inside ''​Results.gms''​ with the following line:
 +<​code>​
 + $set simu example
 +</​code>​
 +When you have extracted all results, use the Excel Add-in ''​TCD.xla''​ to get them in Excel pivot tables. See [[Spreadsheet interface (Outdated)# Extraction of results|extraction of results (Outdated)]] for more details.