WiNDC Model
| Downloads | ||
|---|---|---|
| WiNDC Buildstream Package | WiNDC Buildstream Package (102 KB) |
Utilities and Dataset Description
The WiNDC build routine is a collection of GAMS programs that generate subnational economic accounts for input-output or computable general equilibrium models of the United States economy. All code and data necessary for producing subnational accounts are provided in this repository. Currently, the routine can produce state level accounts.
We begin with the national input-output table of the Bureau of Economic Analysis (BEA) and downscale to the regional level using publicly available economic statistics from government agencies. We use additional data from the BEA on regional gross product and consumer expenditures and data from the Census Bureau on foreign trade and state government expenditures. The WiNDC build stream generates the core WiNDC database. The database contains multisectoral subnational economic datasets for the years 1997 to 2017.
In addition to the core WiNDC database, we offer two modules: the energy-environment module, called blueNOTE, and a basic agricultural module, called NASS.
Step-By-Step Instructions
If you are interested only in the core WiNDC database, you can download it from the link above. If you are interested in details of the build, the source datasets and the modules, please follow the steps outlined below.
- Download the WiNDC build stream package (linked above)
-
Unzipping the file will create a directory called
windc_build_2_1with the subdirectorybuild_files, and the GAMS filesbuild.gms,disagg.gmsandrecalibrate.gms. These GAMS files perform the build, disaggregation, and ultimate re-calibration. We implemented this modular design to give users maximal flexibility for customization. The directorybuild_filescontains all GAMS subroutines and the input data in GDX format. -
If you have a local version of GAMS and have access to the relevant licenses,
navigate in your command line or terminal to the directory
windc_build_2_1and run the GAMS filebuild.gmsby simply typing the following command:Note that this build will work in both, Windows and UNIX/LINUX environments.gams build.gms -
The core WiNDC database,
WiNDCdatabase.gdx, will be generated locally in a directory calledbuilt_datasets. It contains data for all US states and 71 (summary) sectors from 1997 to 2017. -
If you don't have access to a GAMS license including needed solver licenses,
you can generate the database locally using
NEOS.
To run the model on NEOS, type the following command:
gams build.gms --neos=yes -
Once the database is created, it can be loaded into a general equilibrium
model in GAMS. The WiNDC build stream package includes the
WiNDC core model:
windc_model.gms. This model shows how to read the core WiNDC database in a simple general equilibrium model and verify benchmark consistency in the underlying dataset. Note that the model contains no customizations aside from the sectoral aggregation.
Modules: blueNOTE and NASS
-
Disaggregate
The core WiNDC database can be disaggregated into specific year and sector data. This is performed with the filedisagg.gms.
For example, the following command will generate a disaggregated data file of key energy sectors:Note that the flaggams disagg.gms --aggr=bluenote [--neos=yes]
--neos=yesis optional. This command generates the fileWiNDC_disagg_bluenote.gdxand places it in the directorybuilt_datasets.
To disaggregate the core WiNDC database for the agricultural sector, use the following command:This command generates the filegams disagg.gms --aggr=nass [--neos=yes]
WiNDC_disagg_nass.gdxand places it in the directorybuilt_datasets.
The set mappings that control the disaggregation are in the directorybuild_files/user_defined_schemes. Examples for both blueNOTE and NASS are included with the core distribution. Users are encouraged to customize this based on their specific modeling framework. Please contact us if you have questions about how to build your own disaggregation schemes.
Note: The fileWiNDCdatabase.gdxmust exist in the directorybuilt_datasetsfor the routinedisagg.gmsto run successfully. -
Recalibrate
To recalibrate the disaggregated blueNOTE dataset, run the following command:As before, again, the NEOS flag is optional in case you wish to solve the model remotely on the NEOS system. The resulting recalibrated database is calledgams recalibrate.gms --aggr=bluenote --year=2017 [--neos=yes]WiNDC_cal_2017_bluenote.gdxand it is placed in the directorybuilt_datasets.
To recalibrate the disaggregated NASS dataset, run the following command:The resulting recalibrated database is calledgams recalibrate.gms --aggr=nass --year=2017 [--neos=yes]WiNDC_cal_2017_nass.gdxand it is placed in the directorybuilt_datasets. Note that the years 2012 and 2017 are available for the agricultural module NASS .
Note: In order to successfully runrecalibrate.gms, the fileWiNDC_disagg_*.gdxmust exist in the directorybuilt_datasets.
Version Information
- Release Date: July 17, 2020
- Data Version: v2.1.0