Resource Center

Advanced Search
Technical Papers
Working Papers
Research Memoranda
GTAP-L Mailing List
GTAP FAQs
Educational Materials
CGE Books/Articles
Important References
Submit New Resource

GTAP Resources: Resource Display

GTAP Resource #4330

"FlexAgg2 add-on for creating GTAP-AGR compatible database aggregations."
by Villoria, Nelson B.


Abstract
FlexAgg2 add-on for creating GTAP-AGR compatible database aggregations.


Resource Details (Export Citation) GTAP Keywords
Category: Utilities
Status: Not published
By/In:
Date: 2014
Version:
Created: Villoria, N. (2/20/2014)
Updated: Villoria, N. (2/20/2014)
Visits: 1,051
- Other data bases and data issues
- The GTAP Data Base and extensions


Attachments
If you have trouble accessing any of the attachments below due to disability, please contact the authors listed above.


Public Access
  File format GTAP Resource 4330  (1.7 MB)   Replicated: 0 time(s)


Restricted Access
No documents have been attached.


Special Instructions
The programs here aggregate the GTAP-AGR parameters (134 regions, Version 8.1) to a desired level of aggregation.

The programs (gtapagr-agg.bat, gtapagr-run.bat and agraggpar.exe/axt/axs) and disaggregated GTAP_AGR parameters (AGRPRM.har) should be copied into a FlexAgg2 folder and run in the following way:

1. Create Aggregation as specified in mapping file my_agg using
FlexAgg2, i.e.:

..\: DATA-AGG my_agg

2. Then run the following command:

..\: GTAPAGR-AGG my_agg

Once that this is done, the file gsdgpar.har in the ./my_agg/ directory will reflect the changes required by
GTAP-AGR.

In addition to the parameter file (AGRPRM.har), the program gtapagr-agg.bat uses gsddat.har and gsdset.har for reading data volumes and set specifications needed for aggregation. It also needs
the aggcheck (.exe, .axt, .axs) to transform my_agg.txt in a header file with mappings. It also needs my_agg/gsdgpar.har to copy the modified headers. In other words, although the programs could work
after carefully getting this setup right, they are really designed as an after-processing add-on to FlexAgg2.

NOTES:

1. Because AGRPRM.har is disaggregated to 134 regions it will only work with Version 8.1. of the database and its associated FlexAgg2; the user could use these same programs in other GTAP/FlexAgg2 versions provided that AGRPRM.har is modified accordingly.

2. GTAP-AGR also use some non-standard sets. Because these are mostly over products, which do not change across database versions, I found more productive to hardwire them in the model tablo file written by Keeney and Hertel here. I also do the same with their regional groupings. Read the paper, though.

Acknowledgments:

- GTAP-AGR is due to Keeney and Hertel, their model is here.

- agraggpar.tab is essentially a modification of a piece by Ludena that can be found here.

- To learn more about awesome FlexAgg2 click here.

The source code of this modifications is in the sub-folder /src_agr, within the zip file.

If you use these files, and find them helpful, send me a line.


Comments (0 posted)
You must log in before entering comments.

No comments have been posted.