Commit
·
3a2eee0
1
Parent(s):
f81d4f9
add 7
Browse files- .gitattributes +1 -0
- 7/paper.pdf +3 -0
- 7/replication_package/APSR Replication Codes.do +93 -0
- 7/replication_package/Replication Read Me.docx +0 -0
- 7/replication_package/replication data file/SugarReplicate.dta +3 -0
- 7/replication_package/replication data file/SugarReplicate_iter1.dta +3 -0
- 7/replication_package/replication data file/SugarReplicate_iter2.dta +3 -0
- 7/should_reproduce.txt +3 -0
.gitattributes
CHANGED
|
@@ -72,3 +72,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 72 |
*.shp filter=lfs diff=lfs merge=lfs -text
|
| 73 |
*.mxd filter=lfs diff=lfs merge=lfs -text
|
| 74 |
*.dbf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 72 |
*.shp filter=lfs diff=lfs merge=lfs -text
|
| 73 |
*.mxd filter=lfs diff=lfs merge=lfs -text
|
| 74 |
*.dbf filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
*.mat filter=lfs diff=lfs merge=lfs -text
|
7/paper.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2578aed35498f24100759a9f6a750277ead62dd3e90fd1cbda033bb6eaa21fc5
|
| 3 |
+
size 545221
|
7/replication_package/APSR Replication Codes.do
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*Sugar Bill APSR - Replication Code. Results in the paper used STATA version 15.
|
| 2 |
+
|
| 3 |
+
*these are our main results (Table 1)
|
| 4 |
+
|
| 5 |
+
* Import Data
|
| 6 |
+
|
| 7 |
+
use "SugarReplicate.dta", clear
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
*Generate Dummy Voting Variables and Make Nominal Contributions into Real Ones
|
| 11 |
+
|
| 12 |
+
gen yesvote=0
|
| 13 |
+
replace yesvote=1 if vote=="Aye"
|
| 14 |
+
|
| 15 |
+
gen repub=0
|
| 16 |
+
replace repub=1 if party == "Republican"
|
| 17 |
+
|
| 18 |
+
gen rsugcont=totalcont
|
| 19 |
+
replace rsugcont= totalcont / 1.103 if cong == 115
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
*install program to create the marginal effects graphs
|
| 23 |
+
|
| 24 |
+
ssc install marhis
|
| 25 |
+
|
| 26 |
+
xtset id cong
|
| 27 |
+
|
| 28 |
+
set matsize 11000
|
| 29 |
+
|
| 30 |
+
*Create Column 1 of Table 1 (District Fixed Effects) We add the FE manually (i.id) because MARHIS only works with plain Logit command
|
| 31 |
+
|
| 32 |
+
logit yesvote rsugcont ncu tenure poverty bach medincome over65 agcom i.id, robust
|
| 33 |
+
|
| 34 |
+
*Create Figure 1
|
| 35 |
+
|
| 36 |
+
marhis rsugcont, points(50) percent
|
| 37 |
+
|
| 38 |
+
*Create Figure 2
|
| 39 |
+
|
| 40 |
+
marhis ncu, points(50) percent
|
| 41 |
+
|
| 42 |
+
*Create Figure 3
|
| 43 |
+
|
| 44 |
+
marhis tenure, points(50) percent
|
| 45 |
+
|
| 46 |
+
*Create Column 2 of Table 1 (Incumbent Fixed Effects) Keep both == 1 keeps only cases where the same incumbent voted on both ammendments
|
| 47 |
+
|
| 48 |
+
keep if both == 1
|
| 49 |
+
|
| 50 |
+
logit yesvote rsugcont ncu tenure poverty bach medincome over65 agcom i.id, robust
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
*Generate Row 1 of Table 3 (District & Incumbent Fixed Effects using a different window as robustness)
|
| 54 |
+
* this time, contributions are measured during the calendar year the vote occurred (2013 and 2018)
|
| 55 |
+
|
| 56 |
+
use "SugarReplicate_iter1.dta", replace
|
| 57 |
+
|
| 58 |
+
gen yesvote=0
|
| 59 |
+
|
| 60 |
+
replace yesvote=1 if vote=="Aye"
|
| 61 |
+
|
| 62 |
+
gen repub=0
|
| 63 |
+
replace repub=1 if party == "Republican"
|
| 64 |
+
|
| 65 |
+
gen rsugcont=totalcont
|
| 66 |
+
replace rsugcont= totalcont / 1.103 if cong == 115
|
| 67 |
+
|
| 68 |
+
logit yesvote rsugcont ncu tenure poverty bach medincome over65 agcom i.id, robust
|
| 69 |
+
|
| 70 |
+
keep if both == 1
|
| 71 |
+
|
| 72 |
+
logit yesvote rsugcont ncu tenure poverty bach medincome over65 agcom i.id, robust
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
*Generate Row 2 of Table 3 (District & Incumbent Fixed Effects using a different window as robustness)
|
| 76 |
+
* this time, contributions are measured during the 12 months before each vote occurred
|
| 77 |
+
|
| 78 |
+
use "SugarReplicate_iter2.dta", replace
|
| 79 |
+
|
| 80 |
+
gen yesvote=0
|
| 81 |
+
replace yesvote=1 if vote=="Aye"
|
| 82 |
+
gen repub=0
|
| 83 |
+
replace repub=1 if party == "Republican"
|
| 84 |
+
|
| 85 |
+
gen rsugcont=totalcont
|
| 86 |
+
replace rsugcont= totalcont / 1.103 if cong == 115
|
| 87 |
+
|
| 88 |
+
logit yesvote rsugcont ncu tenure poverty bach medincome over65 agcom i.id, robust
|
| 89 |
+
|
| 90 |
+
keep if both == 1
|
| 91 |
+
|
| 92 |
+
logit yesvote rsugcont ncu tenure poverty bach medincome over65 agcom i.id, robust
|
| 93 |
+
|
7/replication_package/Replication Read Me.docx
ADDED
|
Binary file (13.7 kB). View file
|
|
|
7/replication_package/replication data file/SugarReplicate.dta
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8498a6ad4eef94b82a2fbc7fa9db2dbd28d327cfd38ee24e3692435b2911d3ee
|
| 3 |
+
size 137653
|
7/replication_package/replication data file/SugarReplicate_iter1.dta
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4a5eadb37ce5a29d4a11dfdce4beea1560ce23d47768f240b5cc277de14485ce
|
| 3 |
+
size 138257
|
7/replication_package/replication data file/SugarReplicate_iter2.dta
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a1ff5364d2d170b22083e7891a688aab6f1e5553eddd34ef90cac0cb760d2265
|
| 3 |
+
size 137653
|
7/should_reproduce.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4a39741fd2a730f1e17dc8a05f4cc2421e5b9f2ea6f8ddde657eaa92fa10d63c
|
| 3 |
+
size 50
|