*** Program to calculate Tables for McCarthy Sefton Lee & Sambt Generational Wealth Accounts *** David G McCarthy 2017 *** Preparatory stuff display "$S_TIME" set more off clear discard clear mata set maxvar 20000 *** Create local variables with paths to appropriate input and output files local _pop_proj_base_extended = "C:\Users\pw21703\Documents\Google Drive\UGA\Research\GenerationalWealthAccounts\UK\UKPopProj.csv" local _prof2011 = "C:\Users\pw21703\Documents\Google Drive\UGA\Research\GenerationalWealthAccounts\UK\2012NTAprofilesUK.csv" local _GWA2011_base = "C:\Users\pw21703\Documents\Google Drive\UGA\Research\GenerationalWealthAccounts\UK\2012GWAbase.dta" local _GWA2011_fiscal_projections = "C:\Users\pw21703\Documents\Google Drive\UGA\Research\GenerationalWealthAccounts\UK\FiscalProjections.dta" local _GWA2011_OBR = "C:\Users\pw21703\Documents\Google Drive\UGA\Research\GenerationalWealthAccounts\obr_adj.dta" local _GWA2011_NoOBR = "C:\Users\pw21703\Documents\Google Drive\UGA\Research\GenerationalWealthAccounts\obr_noadj.dta" *** Clear file _GWA2012_base gen year=0 *** Perform each of the runs in the paper (each run appends the file `_GWA2012_base') GWA_EJ 2011 0.05 0.015 `_prof2011' `_pop_proj_base_extended' `_GWA2011_OBR' 1.55179E+13 47377.18 10 `_GWA2011_base' `_GWA2011_fiscal_projections' 1 gen reverse_agecat = -agecat sort run_type reverse_agecat drop reverse_agecat year display "$S_TIME" *** Output should be copied into Excel spreadsheet Tables2345.xlsx