********************************************************************************
*		
*			Buggle, J. & Vlachos, S. (2022) --
*			Populist Persuasion in Electoral Campaigns: 
*			Evidence from Bryan’s Unique Whistle-Stop Tour
*	
*				MASTER PROGRAM FOR REPLICATION
*
********************************************************************************

clear all
cap clear matrix
set more off
set mem 4g
set matsize 1000
set maxvar 32767
	
********************************************************************************
* Working directories
********************************************************************************

* Please set your directory *

global path "YOUR DIRECTORY"	
				
global data			"$path/data"
global do_files		"$path/do_files"
global figures	 	"$path/figures"
global tables	 	"$path/tables"
global log_files	"$path/log_files"

global today 		"_`c(current_date)'"

********************************************************************************
* Installs third-party programs
********************************************************************************

ssc install estout, replace
ssc install erepost, replace
ssc install scheme-burd, replace
ssc install reghdfe, replace
ssc install ppmlhdfe, replace
ssc install acreg, replace
ssc install psmatch2, replace
ssc install ebalance, replace
ssc install predcalc, replace
ssc install suregr, replace
ssc install coefplot, replace
ssc install nnmatch, replace
ssc install psacalc, replace
net install grc1leg,from(http://www.stata.com/users/vwiggins/) 
ssc install center, replace

********************************************************************************
* Estimation Results
********************************************************************************

* I. MAIN TEXT
********************************************************************************

* Table 1
do "$do_files/Table1.do"
* Table 2
do "$do_files/Table2.do"
* Table 3
do "$do_files/Table3.do"

* Figure 2
do "$do_files/Figure2.do"
* Figure 3
do "$do_files/Figure3.do"
* Figure 4
do "$do_files/Figure4.do"
* Figure 5
do "$do_files/Figure5.do"

* II. ONLINE APPENDIX
********************************************************************************

* Table B1
do "$do_files/TableB1.do"
* Table B2
do "$do_files/TableB2.do"
* Table B3
do "$do_files/TableB3.do"
* Table B4
do "$do_files/TableB4.do"
* Table B5
do "$do_files/TableB5.do"
* Table B6
do "$do_files/TableB6.do"
* Table B7
do "$do_files/TableB7.do"
* Table C1
do "$do_files/TableC1.do"
* Table C2
do "$do_files/TableC2.do"
* Table C3
do "$do_files/TableC3.do"
* Table C4
do "$do_files/TableC4.do"
* Table D1
do "$do_files/TableD1.do"
* Table D2
do "$do_files/TableD2.do"
* Table D3
do "$do_files/TableD3.do"
* Table D4
do "$do_files/TableD4.do"
* Table D5
do "$do_files/TableD5.do"

* Figure A3 
do "$do_files/FigureA3.do"
* Figure A4 
do "$do_files/FigureA4.do"
* Figure A5
do "$do_files/FigureA5.do"
* Figure B1
do "$do_files/FigureB1.do"
* Figure B2
do "$do_files/FigureB2.do"
* Figure B3
do "$do_files/FigureB3.do"
* Figure C1
do "$do_files/FigureC1.do"
* Figure C2
do "$do_files/FigureC2.do"
* Figure C3
do "$do_files/FigureC3.do"
* Figure C4 
do "$do_files/FigureC4.do"
* Figure C5 
do "$do_files/FigureC5.do"
