Commit
·
a8ba918
1
Parent(s):
1b9effb
add 33
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- 33/paper.pdf +3 -0
- 33/replication_package/Readme.pdf +3 -0
- 33/replication_package/Williams_files/Analysis_data/POP_1840_NHGIS.dta +3 -0
- 33/replication_package/Williams_files/Analysis_data/POP_1860_NHGIS.dta +3 -0
- 33/replication_package/Williams_files/Analysis_data/POP_1900_NHGIS.dta +3 -0
- 33/replication_package/Williams_files/Analysis_data/POP_1910_NHGIS.dta +3 -0
- 33/replication_package/Williams_files/Analysis_data/POP_1920_NHGIS.dta +3 -0
- 33/replication_package/Williams_files/Analysis_data/POP_1930_NHGIS.dta +3 -0
- 33/replication_package/Williams_files/Analysis_data/POP_2010_NHGIS.dta +3 -0
- 33/replication_package/Williams_files/Analysis_data/censusage.dta +3 -0
- 33/replication_package/Williams_files/Analysis_data/censuseducation.dta +3 -0
- 33/replication_package/Williams_files/Analysis_data/illiterate_NHGIS.dta +3 -0
- 33/replication_package/Williams_files/Analysis_data/lynchallstates.dta +3 -0
- 33/replication_package/Williams_files/Analysis_data/lynchcorrectblacksnomob.dta +3 -0
- 33/replication_package/Williams_files/Analysis_data/lynchcorrectwhites.dta +3 -0
- 33/replication_package/Williams_files/Analysis_data/maindata.dta +3 -0
- 33/replication_package/Williams_files/Analysis_data/maritalcensus.dta +3 -0
- 33/replication_package/Williams_files/Analysis_data/news.dta +3 -0
- 33/replication_package/Williams_files/Analysis_data/numslaves.dta +3 -0
- 33/replication_package/Williams_files/Analysis_data/religion.dta +3 -0
- 33/replication_package/Williams_files/Analysis_data/sfp93.dta +3 -0
- 33/replication_package/Williams_files/Analysis_data/votingage1910.dta +3 -0
- 33/replication_package/Williams_files/Cleaning_files/Censusage.do +24 -0
- 33/replication_package/Williams_files/Cleaning_files/Censuseducation.do +22 -0
- 33/replication_package/Williams_files/Cleaning_files/Illiterate.do +29 -0
- 33/replication_package/Williams_files/Cleaning_files/Lynching.do +70 -0
- 33/replication_package/Williams_files/Cleaning_files/Lynchingallstates.do +88 -0
- 33/replication_package/Williams_files/Cleaning_files/Marital.do +25 -0
- 33/replication_package/Williams_files/Cleaning_files/News.do +36 -0
- 33/replication_package/Williams_files/Cleaning_files/Numslaves.do +26 -0
- 33/replication_package/Williams_files/Cleaning_files/POP_1840.do +34 -0
- 33/replication_package/Williams_files/Cleaning_files/POP_1860.do +26 -0
- 33/replication_package/Williams_files/Cleaning_files/POP_1900.do +28 -0
- 33/replication_package/Williams_files/Cleaning_files/POP_1910.do +30 -0
- 33/replication_package/Williams_files/Cleaning_files/POP_1920.do +30 -0
- 33/replication_package/Williams_files/Cleaning_files/POP_1930.do +29 -0
- 33/replication_package/Williams_files/Cleaning_files/POP_2010.do +26 -0
- 33/replication_package/Williams_files/Cleaning_files/Proact.do +37 -0
- 33/replication_package/Williams_files/Cleaning_files/Religion.do +23 -0
- 33/replication_package/Williams_files/Cleaning_files/SFP93.do +33 -0
- 33/replication_package/Williams_files/Cleaning_files/Setup_file.do +19 -0
- 33/replication_package/Williams_files/Cleaning_files/Votingage.do +30 -0
- 33/replication_package/Williams_files/Input_data/POP_1840_temp.dta +3 -0
- 33/replication_package/Williams_files/Input_data/POP_1860_temp.dta +3 -0
- 33/replication_package/Williams_files/Input_data/POP_1900_temp.dta +3 -0
- 33/replication_package/Williams_files/Input_data/POP_1910_temp.dta +3 -0
- 33/replication_package/Williams_files/Input_data/POP_1920_temp.dta +3 -0
- 33/replication_package/Williams_files/Input_data/POP_1930_temp.dta +3 -0
- 33/replication_package/Williams_files/Input_data/POP_2010_temp.dta +3 -0
- 33/replication_package/Williams_files/Input_data/PartyDominance.dta +3 -0
33/paper.pdf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:da0ca5c450c35582a6a880517ceda077cda0ad95d05dfed682ef7bad1ed0cd4f
|
3 |
+
size 1806683
|
33/replication_package/Readme.pdf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:63ed7446442a34905f20fc28fc9ad63afc4111bb24f4d73dabef061b4467ceab
|
3 |
+
size 98045
|
33/replication_package/Williams_files/Analysis_data/POP_1840_NHGIS.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a17de4b91b6f95b0fa6cfd107f5f416c2ff21a977ca23a3bc136bfdcaa38213e
|
3 |
+
size 68395
|
33/replication_package/Williams_files/Analysis_data/POP_1860_NHGIS.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dfbfa5a653ffc61777c06bb820fa4d0f343c2c4a583794f07b2b3ecdda2dc295
|
3 |
+
size 18651
|
33/replication_package/Williams_files/Analysis_data/POP_1900_NHGIS.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e3ae4101b85a3827dd4f8644f17c734dc91e3f2702c61f58a082a641d68b4587
|
3 |
+
size 37467
|
33/replication_package/Williams_files/Analysis_data/POP_1910_NHGIS.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:480261d258b4bf5acb521314df6ffe3319ba52d9b9072243b2a4b53946a922a0
|
3 |
+
size 37995
|
33/replication_package/Williams_files/Analysis_data/POP_1920_NHGIS.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:33407f02367be1082114dbe07b1ef41a93f9900b76440f6d0efa38f783bfd3e5
|
3 |
+
size 39435
|
33/replication_package/Williams_files/Analysis_data/POP_1930_NHGIS.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:15415a139f18a2d4e155b07b9fdd5f4ed7820182c16f9dfda8cbace87be167d9
|
3 |
+
size 26707
|
33/replication_package/Williams_files/Analysis_data/POP_2010_NHGIS.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b99f1d41278e9adc8b6f316e06ec2f3d8c4ddfc79c715dca8f8977b9b4a9d88a
|
3 |
+
size 41127
|
33/replication_package/Williams_files/Analysis_data/censusage.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:414e267bc7d3684e0e2b5895933ad4b835a4a83a67ea2f345ee2d4d737eaf697
|
3 |
+
size 50870
|
33/replication_package/Williams_files/Analysis_data/censuseducation.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fa2f244a6850b318102c80e4e66c1c71fcf7a493007eb186937d755c539bf231
|
3 |
+
size 50870
|
33/replication_package/Williams_files/Analysis_data/illiterate_NHGIS.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4979e87d77a168bad5b1a30287ebf07aee8e8ba984194601065838080ed33715
|
3 |
+
size 178395
|
33/replication_package/Williams_files/Analysis_data/lynchallstates.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:edfc17eeb4b0242fb1f64a54c4fcca62525526f50f61fe4c00ff83f3fd2c048c
|
3 |
+
size 360081
|
33/replication_package/Williams_files/Analysis_data/lynchcorrectblacksnomob.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ffc37e27639f080c0ca7215b606144b385b91fc7c1c57e50e97817f7caa923b3
|
3 |
+
size 15969
|
33/replication_package/Williams_files/Analysis_data/lynchcorrectwhites.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:81c1e9a63718363a91c36b9287db2e422a7e4b5fca7887839351072c0a09f512
|
3 |
+
size 5790
|
33/replication_package/Williams_files/Analysis_data/maindata.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:951715290a2c3f2d51c729bf84aec5fdd92be2d3eded272c8320bcbff05faaef
|
3 |
+
size 115353
|
33/replication_package/Williams_files/Analysis_data/maritalcensus.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:08ad45a240fe6a01a098727665ef2d41946d8be5c942b8ab6daae8a748dd3c6d
|
3 |
+
size 52070
|
33/replication_package/Williams_files/Analysis_data/news.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bf6665dbcc09ec89f5eac6772dd3f7c536e1bd9aa5ca695e558d96356934497e
|
3 |
+
size 111275
|
33/replication_package/Williams_files/Analysis_data/numslaves.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a534bad29ec64e68bf5acc7f181530f0a9b5a98d89b47d040615fb93c95292f1
|
3 |
+
size 18619
|
33/replication_package/Williams_files/Analysis_data/religion.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e54bcc78f4818a85eb79f2f26cea5a5428ac02a33c53333962890ad9faba6b8a
|
3 |
+
size 40559
|
33/replication_package/Williams_files/Analysis_data/sfp93.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:82b6b631f11090c13522b430bc10b9dc1acb5c84a075350ca3abd27a80b6e8a0
|
3 |
+
size 324115
|
33/replication_package/Williams_files/Analysis_data/votingage1910.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c6ecc22f4bf508731aad7e5be81fc4c937588a6ef4982f364d07f7d38f0d1c23
|
3 |
+
size 178395
|
33/replication_package/Williams_files/Cleaning_files/Censusage.do
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear
|
2 |
+
|
3 |
+
#delimit;
|
4 |
+
|
5 |
+
*** CLEANING FILE ***;
|
6 |
+
** Input file: censusage_temp from IPUMS NHGIS;
|
7 |
+
** Creates analysis data files: censusage to be used in Createmain.do;
|
8 |
+
|
9 |
+
global infile = "Williams_files\Input_data";
|
10 |
+
global outfile = "Williams_files\Analysis_data";
|
11 |
+
|
12 |
+
use "$infile\censusage_temp";
|
13 |
+
|
14 |
+
rename statea State_FIPS;
|
15 |
+
rename countya County_FIPS;
|
16 |
+
|
17 |
+
generate fips = State_FIPS*1000 + County_FIPS;
|
18 |
+
|
19 |
+
rename fm8002 Black_avgage;
|
20 |
+
rename fm8001 White_avgage;
|
21 |
+
|
22 |
+
keep fips State_FIPS County_FIPS Black_avgage White_avgage;
|
23 |
+
save "$outfile\censusage", replace;
|
24 |
+
|
33/replication_package/Williams_files/Cleaning_files/Censuseducation.do
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear
|
2 |
+
|
3 |
+
#delimit;
|
4 |
+
|
5 |
+
*** CLEANING FILE ***;
|
6 |
+
** Input file: censuseducation_temp from IPUMS NHGIS;
|
7 |
+
** Creates analysis data files: censuseducation to be used in Createmain.do;
|
8 |
+
|
9 |
+
global infile = "Input_data";
|
10 |
+
global outfile = "Analysis_data";
|
11 |
+
|
12 |
+
use "$infile/censuseducation_temp";
|
13 |
+
|
14 |
+
rename statea State_FIPS;
|
15 |
+
rename countya County_FIPS;
|
16 |
+
generate fips = State_FIPS*1000 + County_FIPS;
|
17 |
+
|
18 |
+
generate Black_beyondhs = (grw018 + grw019 + grw020 + grw021 + grw025 + grw026 + grw027 + grw028)/(grw015 + grw016 + grw017 + grw018 + grw019 + grw020 + grw021 + grw022 + grw023 + grw024 + grw025 + grw026 + grw027 + grw028);
|
19 |
+
generate White_beyondhs = (grw004 + grw005 + grw006 + grw007 + grw011 + grw012 + grw013 + grw014)/( grw001 + grw002 + grw003 + grw004 + grw005 + grw006 + grw007 + grw008 + grw009 + grw010 + grw011 + grw012 + grw013 + grw014);
|
20 |
+
|
21 |
+
keep fips State_FIPS County_FIPS Black_beyondhs White_beyondhs;
|
22 |
+
save "$outfile/censuseducation", replace;
|
33/replication_package/Williams_files/Cleaning_files/Illiterate.do
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear
|
2 |
+
|
3 |
+
#delimit;
|
4 |
+
|
5 |
+
*** CLEANING FILE ***;
|
6 |
+
** Input data file: illiterate_temp from IPUMS NHGIS;
|
7 |
+
** Creates analysis data file: illiterate_NHGIS to be used in Createmain.do;
|
8 |
+
|
9 |
+
global infile = "Input_data";
|
10 |
+
global outfile = "Analysis_data";
|
11 |
+
|
12 |
+
use "$infile/illiterate_temp";
|
13 |
+
|
14 |
+
rename county County;
|
15 |
+
rename state State;
|
16 |
+
rename statea State_FIPS;
|
17 |
+
rename countya County_FIPS;
|
18 |
+
** To match with later years;
|
19 |
+
replace State_FIPS = State_FIPS/10;
|
20 |
+
replace County_FIPS = County_FIPS/10;
|
21 |
+
|
22 |
+
generate fips = State_FIPS*1000+County_FIPS;
|
23 |
+
|
24 |
+
generate White_illiterate = a35001 + a35002;
|
25 |
+
rename a35003 Black_illiterate;
|
26 |
+
|
27 |
+
keep fips County State Black_illiterate White_illiterate;
|
28 |
+
|
29 |
+
save "$outfile/illiterate_NHGIS", replace;
|
33/replication_package/Williams_files/Cleaning_files/Lynching.do
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear
|
2 |
+
|
3 |
+
#delimit;
|
4 |
+
|
5 |
+
*** CLEANING FILE ***;
|
6 |
+
** Input file: lynching from Project HAL;
|
7 |
+
** Creates analysis data files: lynchcorrectblacksnomob and lynchcorrectwhites to be used in Createmain.do;
|
8 |
+
|
9 |
+
global infile = "Input_data";
|
10 |
+
global outfile = "Analysis_data";
|
11 |
+
|
12 |
+
use "$infile/lynching";
|
13 |
+
|
14 |
+
** Change state abbreviation to full spelling;
|
15 |
+
replace State = subinstr(State, "LA", "Louisiana", .);
|
16 |
+
replace State = subinstr(State, "GA", "Georgia", .);
|
17 |
+
replace State = subinstr(State, "NC", "North Carolina", .);
|
18 |
+
replace State = subinstr(State, "AL", "Alabama", .);
|
19 |
+
replace State = subinstr(State, "SC", "South Carolina", .);
|
20 |
+
replace State = subinstr(State, "FL", "Florida", .);
|
21 |
+
replace State = trim(State);
|
22 |
+
|
23 |
+
** Keep southern states for which voter registration data are separated by race;
|
24 |
+
keep if State == "Louisiana"|State =="Georgia"|State=="North Carolina"|State=="Alabama"|State=="South Carolina"|State=="Florida";
|
25 |
+
|
26 |
+
** Change counties/parishes that are mispelled (or need to match the spelling in voting data) in original data obtained from Project HAL;
|
27 |
+
replace County = subinstr(County, "Calcasiau", "Calcasieu", .);
|
28 |
+
replace County = subinstr(County, "Arcadia", "Bienville", .);
|
29 |
+
replace County = subinstr(County, "Cataloula", "Catahoula", .);
|
30 |
+
replace County = subinstr(County, "Northamption", "Northampton", .) ;
|
31 |
+
replace County = subinstr(County, "St. John", "St. John the Baptist", .) ;
|
32 |
+
replace County = subinstr(County, "E.", "East", .);
|
33 |
+
replace County = subinstr(County, "W.", "West", .);
|
34 |
+
replace County = subinstr(County, "Jeff.", "Jefferson", .) if State == "Louisiana";
|
35 |
+
replace County = subinstr(County, "Dade", "Miami-Dade", .) if State == "Florida";
|
36 |
+
replace County = subinstr(County, "Suwanee", "Suwannee", .) if State == "Florida";
|
37 |
+
replace County = subinstr(County, "St. John the Baptists", "St. Johns", .) if State == "Florida";
|
38 |
+
|
39 |
+
** Remove extra spaces from County names;
|
40 |
+
replace County = trim(County);
|
41 |
+
|
42 |
+
|
43 |
+
generate year = real(Year);
|
44 |
+
sort year;
|
45 |
+
|
46 |
+
** Create data set for black victims;
|
47 |
+
preserve;
|
48 |
+
** Only focus on black lynchings by non black mobs;
|
49 |
+
drop if Mob == "Blk";
|
50 |
+
keep if Race == "Blk";
|
51 |
+
collapse (count) year, by(County State);
|
52 |
+
|
53 |
+
drop if County == "Indeterminant";
|
54 |
+
** Create number of black lynchings variable;
|
55 |
+
rename year lynchingmob;
|
56 |
+
|
57 |
+
label variable lynchingmob "Number of black lynchings";
|
58 |
+
save "$outfile/lynchcorrectblacksnomob", replace;
|
59 |
+
restore;
|
60 |
+
|
61 |
+
preserve;
|
62 |
+
** Create data set for white victims;
|
63 |
+
keep if Race == "Wht";
|
64 |
+
collapse (count) year, by(County State);
|
65 |
+
rename year lynchingmobwhite;
|
66 |
+
drop if County == "Indeterminant";
|
67 |
+
label variable lynchingmobwhite "Number of white lynchings";
|
68 |
+
|
69 |
+
save "$outfile/lynchcorrectwhites", replace;
|
70 |
+
restore;
|
33/replication_package/Williams_files/Cleaning_files/Lynchingallstates.do
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear
|
2 |
+
|
3 |
+
#delimit;
|
4 |
+
|
5 |
+
*** CLEANING FILE ***;
|
6 |
+
** Input file: lynching from Project HAL;
|
7 |
+
** Creates analysis data files: lynchallstates to be used in Southernfocus.do;
|
8 |
+
|
9 |
+
global infile = "Input_data";
|
10 |
+
global outfile = "Analysis_data";
|
11 |
+
|
12 |
+
use "$infile/lynching";
|
13 |
+
|
14 |
+
replace State = subinstr(State, "LA", "Louisiana", .);
|
15 |
+
replace State = subinstr(State, "GA", "Georgia", .);
|
16 |
+
replace State = subinstr(State, "NC", "North Carolina", .);
|
17 |
+
replace State = subinstr(State, "AL", "Alabama", .);
|
18 |
+
replace State = subinstr(State, "SC", "South Carolina", .);
|
19 |
+
replace State = subinstr(State, "FL", "Florida", .);
|
20 |
+
replace State = subinstr(State, "AR", "Arkansas", .);
|
21 |
+
replace State = subinstr(State, "KY", "Kentucky", .);
|
22 |
+
replace State = subinstr(State, "MS", "Mississippi", .);
|
23 |
+
replace State = subinstr(State, "TN", "Tennessee", .);
|
24 |
+
replace State = trim(State);
|
25 |
+
replace County = subinstr(County, "Calcasiau", "Calcasieu", .);
|
26 |
+
replace County = subinstr(County, "Arcadia", "Bienville", .);
|
27 |
+
replace County = subinstr(County, "Cataloula", "Catahoula", .);
|
28 |
+
replace County = subinstr(County, "Northamption", "Northampton", .);
|
29 |
+
replace County = subinstr(County, "St. John", "St. John the Baptist", .);
|
30 |
+
replace County = subinstr(County, "E.", "East", .);
|
31 |
+
replace County = subinstr(County, "W.", "West", .);
|
32 |
+
replace County = subinstr(County, "Jeff.", "Jefferson", .) if State == "Louisiana";
|
33 |
+
replace County = subinstr(County, "Dade", "Miami-Dade", .) if State == "Florida";
|
34 |
+
replace County = subinstr(County, "Suwanee", "Suwannee", .) if State == "Florida";
|
35 |
+
replace County = subinstr(County, "St. John the Baptists", "St. Johns", .) if State == "Florida";
|
36 |
+
replace County = subinstr(County, "Crittendon", "Crittenden", .) if State == "Arkansas";
|
37 |
+
replace County = subinstr(County, "Issequena", "Issaquena", .) if State == "Mississippi";
|
38 |
+
replace County = subinstr(County, "Tallahatichie", "Tallahatchie", .) if State == "Mississippi";
|
39 |
+
replace County = subinstr(County, "Jeff. Davis", "Jefferson Davis", .) if State == "Mississippi";
|
40 |
+
replace County = trim(County);
|
41 |
+
|
42 |
+
generate year = real(Year);
|
43 |
+
sort year;
|
44 |
+
drop if Mob == "Blk";
|
45 |
+
keep if Race == "Blk";
|
46 |
+
collapse (count) year, by(County State);
|
47 |
+
rename year lynchingmob;
|
48 |
+
|
49 |
+
|
50 |
+
merge 1:1 County State using "$infile/censusfipscodes";
|
51 |
+
keep if State == "North Carolina"|State =="Louisiana"|State =="Georgia"|State =="Alabama"|State =="South Carolina"
|
52 |
+
|State=="Florida"|State=="Arkansas"|State=="Kentucky"|State=="Mississippi"|State=="Tennessee";
|
53 |
+
replace lynchingmob = 0 if _merge == 2;
|
54 |
+
drop _merge;
|
55 |
+
|
56 |
+
** Drop counties that are Indeterminant/Undecided/don't exist;
|
57 |
+
drop if fips == .;
|
58 |
+
|
59 |
+
merge m:1 fips using "$outfile/POP_1900_NHGIS";
|
60 |
+
drop _merge;
|
61 |
+
merge m:1 fips using "$outfile/POP_1910_NHGIS";
|
62 |
+
drop _merge;
|
63 |
+
merge m:1 fips using "$outfile/POP_1920_NHGIS";
|
64 |
+
drop _merge;
|
65 |
+
merge m:1 fips using "$outfile/POP_1930_NHGIS";
|
66 |
+
drop _merge;
|
67 |
+
|
68 |
+
|
69 |
+
|
70 |
+
|
71 |
+
* Create a flag if 1900 population is missing;
|
72 |
+
generate flag_POP_1910 = 1 if Black_POP_1910 != . & (State == "North Carolina"|State =="Louisiana"|State =="Georgia"|State =="Alabama"|State =="South Carolina"|State=="Florida"|State=="Arkansas"|State=="Kentucky"|State=="Mississippi"|State=="Tennessee") & Black_POP_1900 ==.;
|
73 |
+
|
74 |
+
* Create a flag if 1900 and 1910 population is missing;
|
75 |
+
generate flag_POP_1920 = 1 if Black_POP_1920 != . & (State == "North Carolina"|State =="Louisiana"|State =="Georgia"|State =="Alabama"|State =="South Carolina"|State=="Florida"|State=="Arkansas"|State=="Kentucky"|State=="Mississippi"|State=="Tennessee") & Black_POP_1910 ==.;
|
76 |
+
|
77 |
+
** Generate flag for whites;
|
78 |
+
generate wflag_POP_1910 = 1 if White_POP_1910 != . & (State == "North Carolina"|State =="Louisiana"|State =="Georgia"|State =="Alabama"|State =="South Carolina"|State=="Florida"|State=="Arkansas"|State=="Kentucky"|State=="Mississippi"|State=="Tennessee") & Black_POP_1900 ==.;
|
79 |
+
|
80 |
+
* Create a flag if 1900 and 1910 population is missing;
|
81 |
+
generate wflag_POP_1920 = 1 if White_POP_1920 != . & (State == "North Carolina"|State =="Louisiana"|State =="Georgia"|State =="Alabama"|State =="South Carolina"|State=="Florida"|State=="Arkansas"|State=="Kentucky"|State=="Mississippi"|State=="Tennessee") & Black_POP_1910 ==.;
|
82 |
+
|
83 |
+
** Calculate lynchings per capita;
|
84 |
+
generate lynchcapitamob = (lynchingmob/Black_POP_1900)*10000;
|
85 |
+
replace lynchcapitamob = (lynchingmob/Black_POP_1910)*10000 if flag_POP_1910 == 1;
|
86 |
+
replace lynchcapitamob = (lynchingmob/Black_POP_1920)*10000 if flag_POP_1920 == 1;
|
87 |
+
replace lynchcapitamob = 0 if lynchingmob == 0;
|
88 |
+
save "$outfile/lynchallstates", replace;
|
33/replication_package/Williams_files/Cleaning_files/Marital.do
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear
|
2 |
+
|
3 |
+
#delimit;
|
4 |
+
|
5 |
+
*** CLEANING FILE ***;
|
6 |
+
** Input data file: maritalcensus_temp from IPUMS NHGIS;
|
7 |
+
** Creates analysis data file: maritalcensus to be used in Createmain.do;
|
8 |
+
|
9 |
+
global infile = "Input_data";
|
10 |
+
global outfile = "Analysis_data";
|
11 |
+
|
12 |
+
|
13 |
+
use "$infile/maritalcensus_temp";
|
14 |
+
|
15 |
+
rename statea State_FIPS;
|
16 |
+
rename countya County_FIPS;
|
17 |
+
|
18 |
+
generate fips = State_FIPS*1000+County_FIPS;
|
19 |
+
|
20 |
+
generate share_maritalblacks = (j0ye004 + j0ye005 + j0ye010 + j0ye011)/j0ye001;
|
21 |
+
generate share_maritalwhites = (j04e004 + j04e005 + j04e010 + j04e011)/j04e001;
|
22 |
+
|
23 |
+
keep fips State_FIPS County_FIPS share_maritalblacks share_maritalwhites;
|
24 |
+
|
25 |
+
save "$outfile/maritalcensus", replace;
|
33/replication_package/Williams_files/Cleaning_files/News.do
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear
|
2 |
+
|
3 |
+
#delimit;
|
4 |
+
|
5 |
+
*** CLEANING FILE ***;
|
6 |
+
** Input data file: news_temp from IPUMS NHGIS;
|
7 |
+
** Creates analysis data file: news to be used in Createmain.do;
|
8 |
+
|
9 |
+
global infile = "Input_data";
|
10 |
+
global outfile = "Analysis_data";
|
11 |
+
|
12 |
+
|
13 |
+
use "$infile/news_temp";
|
14 |
+
generate State_FIPS = real(statea);
|
15 |
+
generate County_FIPS = real(countya);
|
16 |
+
rename county County;
|
17 |
+
rename state State;
|
18 |
+
** To match with later years;
|
19 |
+
replace State_FIPS = State_FIPS/10;
|
20 |
+
replace County_FIPS = County_FIPS/10;
|
21 |
+
generate fips = State_FIPS*1000 + County_FIPS;
|
22 |
+
|
23 |
+
** Rename Florida Territory and counties for merge;
|
24 |
+
replace State = subinstr(State, "Florida Territory", "Florida", .);
|
25 |
+
replace County = subinstr(County, "St ", "St. ", .);
|
26 |
+
replace County = subinstr(County, "DeKalb", "Dekalb", .) if State == "Alabama";
|
27 |
+
replace County = subinstr(County, "St. John The Baptist", "St. John the Baptist", .) if State == "Louisiana";
|
28 |
+
|
29 |
+
|
30 |
+
egen total = rowtotal(acm001 acm002 acm003 acm004);
|
31 |
+
|
32 |
+
** Dividing by four because of the 4 different types of newspapers;
|
33 |
+
generate newspaper = total/4;
|
34 |
+
keep County State newspaper;
|
35 |
+
|
36 |
+
save "$outfile/news", replace;
|
33/replication_package/Williams_files/Cleaning_files/Numslaves.do
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear
|
2 |
+
|
3 |
+
#delimit;
|
4 |
+
|
5 |
+
*** CLEANING FILE ***;
|
6 |
+
** Input data file: numslaves_temp from IPUMS NHGIS;
|
7 |
+
** Creates analysis data file: numslaves to be used in Createmain.do;
|
8 |
+
|
9 |
+
global infile = "Input_data";
|
10 |
+
global outfile = "Analysis_data";
|
11 |
+
|
12 |
+
|
13 |
+
use "$infile/numslaves_temp";
|
14 |
+
|
15 |
+
rename statea State_FIPS;
|
16 |
+
rename countya County_FIPS;
|
17 |
+
** To match with later years;
|
18 |
+
replace State_FIPS = State_FIPS/10;
|
19 |
+
replace County_FIPS = County_FIPS/10;
|
20 |
+
generate fips = State_FIPS*1000+County_FIPS;
|
21 |
+
|
22 |
+
rename agu001 numslaves;
|
23 |
+
|
24 |
+
keep fips numslaves;
|
25 |
+
|
26 |
+
save "$outfile/numslaves", replace;
|
33/replication_package/Williams_files/Cleaning_files/POP_1840.do
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear
|
2 |
+
|
3 |
+
#delimit;
|
4 |
+
|
5 |
+
*** CLEANING FILE ***;
|
6 |
+
** Input data file: POP_1840_temp from IPUMS NHGIS;
|
7 |
+
** Creates analysis data file: POP_1840_NHGIS to be used in Createmain.do;
|
8 |
+
|
9 |
+
global infile = "Input_data";
|
10 |
+
global outfile = "Analysis_data";
|
11 |
+
|
12 |
+
use "$infile/POP_1840_temp";
|
13 |
+
|
14 |
+
rename county County;
|
15 |
+
rename state State;
|
16 |
+
rename statea State_FIPS;
|
17 |
+
rename countya County_FIPS;
|
18 |
+
** To match with later years;
|
19 |
+
replace State_FIPS = State_FIPS/10;
|
20 |
+
replace County_FIPS = County_FIPS/10;
|
21 |
+
generate fips = State_FIPS*1000 + County_FIPS;
|
22 |
+
|
23 |
+
** Rename Florida Territory and counties for merge;
|
24 |
+
replace State = subinstr(State, "Florida Territory", "Florida", .);
|
25 |
+
replace County = subinstr(County, "St ", "St. ", .);
|
26 |
+
replace County = subinstr(County, "DeKalb", "Dekalb", .) if State == "Alabama";
|
27 |
+
replace County = subinstr(County, "St. John The Baptist", "St. John the Baptist", .) if State == "Louisiana";
|
28 |
+
|
29 |
+
|
30 |
+
rename acd001 Total_POP_1840;
|
31 |
+
|
32 |
+
keep fips County State Total_POP_1840;
|
33 |
+
|
34 |
+
save "$outfile/POP_1840_NHGIS", replace;
|
33/replication_package/Williams_files/Cleaning_files/POP_1860.do
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear
|
2 |
+
|
3 |
+
#delimit;
|
4 |
+
|
5 |
+
*** CLEANING FILE ***;
|
6 |
+
** Input data file: POP_1860_temp from IPUMS NHGIS;
|
7 |
+
** Creates analysis data file: POP_1860_NHGIS to be used in Createmain.do;
|
8 |
+
|
9 |
+
global infile = "Input_data";
|
10 |
+
global outfile = "Analysis_data";
|
11 |
+
|
12 |
+
|
13 |
+
use "$infile/POP_1860_temp";
|
14 |
+
|
15 |
+
rename statea State_FIPS;
|
16 |
+
rename countya County_FIPS;
|
17 |
+
** To match with later years;
|
18 |
+
replace State_FIPS = State_FIPS/10;
|
19 |
+
replace County_FIPS = County_FIPS/10;
|
20 |
+
generate fips = State_FIPS*1000+County_FIPS;
|
21 |
+
|
22 |
+
rename ag3001 Total_POP_1860;
|
23 |
+
|
24 |
+
keep fips Total_POP_1860;
|
25 |
+
|
26 |
+
save "$outfile/POP_1860_NHGIS", replace;
|
33/replication_package/Williams_files/Cleaning_files/POP_1900.do
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear
|
2 |
+
|
3 |
+
#delimit;
|
4 |
+
|
5 |
+
*** CLEANING FILE ***;
|
6 |
+
** Input data file: POP_1900_temp from IPUMS NHGIS;
|
7 |
+
** Creates analysis data file: POP_1900_ to be used in Createmain.do;
|
8 |
+
|
9 |
+
global infile = "Input_data";
|
10 |
+
global outfile = "Analysis_data";
|
11 |
+
|
12 |
+
use "$infile/POP_1900_temp";
|
13 |
+
|
14 |
+
rename statea State_FIPS;
|
15 |
+
rename countya County_FIPS;
|
16 |
+
** To match with later years;
|
17 |
+
replace State_FIPS = State_FIPS/10;
|
18 |
+
replace County_FIPS = County_FIPS/10;
|
19 |
+
generate fips = State_FIPS*1000 + County_FIPS;
|
20 |
+
|
21 |
+
generate Black_POP_1900 = az3003 + az3004;
|
22 |
+
rename az2001 White_POP_1900;
|
23 |
+
|
24 |
+
** Replace Dade fips which was later changed to Miami-Dade fips code for merge;
|
25 |
+
replace fips = 12086 if fips == 12025;
|
26 |
+
keep fips Black_POP_1900 White_POP_1900;
|
27 |
+
|
28 |
+
save "$outfile/POP_1900_NHGIS", replace;
|
33/replication_package/Williams_files/Cleaning_files/POP_1910.do
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear
|
2 |
+
|
3 |
+
#delimit;
|
4 |
+
|
5 |
+
*** CLEANING FILE ***;
|
6 |
+
** Input data file: POP_1910_temp from IPUMS NHGIS;
|
7 |
+
** Creates analysis data file: POP_1910_NHGIS to be used in Createmain.do;
|
8 |
+
|
9 |
+
global infile = "Input_data";
|
10 |
+
global outfile = "Analysis_data";
|
11 |
+
|
12 |
+
|
13 |
+
use "$infile/POP_1910_temp";
|
14 |
+
|
15 |
+
rename statea State_FIPS;
|
16 |
+
rename countya County_FIPS;
|
17 |
+
** To match with later years;
|
18 |
+
replace State_FIPS = State_FIPS/10;
|
19 |
+
replace County_FIPS = County_FIPS/10;
|
20 |
+
generate fips = State_FIPS*1000 + County_FIPS;
|
21 |
+
|
22 |
+
generate Black_POP_1910 = a30003 + a30004;
|
23 |
+
generate White_POP_1910 = a30001 + a30002;
|
24 |
+
|
25 |
+
** Replace Dade fips which was later changed to Miami-Dade fips code for merge;
|
26 |
+
replace fips = 12086 if fips == 12025;
|
27 |
+
|
28 |
+
keep fips Black_POP_1910 White_POP_1910;
|
29 |
+
|
30 |
+
save "$outfile/POP_1910_NHGIS", replace;
|
33/replication_package/Williams_files/Cleaning_files/POP_1920.do
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear
|
2 |
+
|
3 |
+
#delimit;
|
4 |
+
|
5 |
+
*** CLEANING FILE ***;
|
6 |
+
** Input data file: POP_1920_temp from IPUMS NHGIS;
|
7 |
+
** Creates analysis data file: POP_1920_NHGIS to be used in Createmain.do;
|
8 |
+
|
9 |
+
global infile = "Input_data";
|
10 |
+
global outfile = "Analysis_data";
|
11 |
+
|
12 |
+
|
13 |
+
use "$infile/POP_1920_temp";
|
14 |
+
|
15 |
+
rename statea State_FIPS;
|
16 |
+
rename countya County_FIPS;
|
17 |
+
** To match with later years;
|
18 |
+
replace State_FIPS = State_FIPS/10;
|
19 |
+
replace County_FIPS = County_FIPS/10;
|
20 |
+
generate fips = State_FIPS*1000 + County_FIPS;
|
21 |
+
|
22 |
+
generate Black_POP_1920 = a8l005 + a8l006;
|
23 |
+
generate White_POP_1920 = a8l001 + a8l002 + a8l003 + a8l004;
|
24 |
+
|
25 |
+
** Replace Dade fips which was later changed to Miami-Dade fips code for merge;
|
26 |
+
replace fips = 12086 if fips == 12025;
|
27 |
+
|
28 |
+
keep fips Black_POP_1920 White_POP_1920;
|
29 |
+
|
30 |
+
save "$outfile/POP_1920_NHGIS", replace;
|
33/replication_package/Williams_files/Cleaning_files/POP_1930.do
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear
|
2 |
+
|
3 |
+
#delimit;
|
4 |
+
|
5 |
+
*** CLEANING FILE ***;
|
6 |
+
** Input data file: POP_1930_temp from IPUMS NHGIS;
|
7 |
+
** Creates analysis data file: POP_1930_NHGIS to be used in Createmain.do;
|
8 |
+
|
9 |
+
global infile = "Input_data";
|
10 |
+
global outfile = "Analysis_data";
|
11 |
+
|
12 |
+
|
13 |
+
use "$infile/POP_1930_temp";
|
14 |
+
|
15 |
+
rename statea State_FIPS;
|
16 |
+
rename countya County_FIPS;
|
17 |
+
** To match with later years;
|
18 |
+
replace State_FIPS = State_FIPS/10;
|
19 |
+
replace County_FIPS = County_FIPS/10;
|
20 |
+
generate fips = State_FIPS*1000 + County_FIPS;
|
21 |
+
|
22 |
+
rename bc0001 Black_POP_1930;
|
23 |
+
|
24 |
+
** Replace Dade fips which was later changed to Miami-Dade fips code for merge;
|
25 |
+
replace fips = 12086 if fips == 12025;
|
26 |
+
|
27 |
+
keep fips Black_POP_1930;
|
28 |
+
|
29 |
+
save "$outfile/POP_1930_NHGIS", replace;
|
33/replication_package/Williams_files/Cleaning_files/POP_2010.do
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear
|
2 |
+
|
3 |
+
#delimit;
|
4 |
+
|
5 |
+
*** CLEANING FILE ***;
|
6 |
+
** Input data file: POP_2010_temp from IPUMS NHGIS;
|
7 |
+
** Creates analysis data file: POP_2010_NHGIS to be used in Createmain.do;
|
8 |
+
|
9 |
+
|
10 |
+
global infile = "Input_data";
|
11 |
+
global outfile = "Analysis_data";
|
12 |
+
|
13 |
+
|
14 |
+
use "$infile/POP_2010_temp";
|
15 |
+
|
16 |
+
rename statea State_FIPS;
|
17 |
+
rename countya County_FIPS;
|
18 |
+
|
19 |
+
generate fips = State_FIPS*1000+County_FIPS;
|
20 |
+
|
21 |
+
rename h7x002 White_POP_2010;
|
22 |
+
rename h7x003 Black_POP_2010;
|
23 |
+
|
24 |
+
keep fips Black_POP_2010 White_POP_2010;
|
25 |
+
|
26 |
+
save "$outfile/POP_2010_NHGIS", replace;
|
33/replication_package/Williams_files/Cleaning_files/Proact.do
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear
|
2 |
+
|
3 |
+
#delimit;
|
4 |
+
|
5 |
+
*** CLEANING FILE and RESULTS FILE ***;
|
6 |
+
** Input file: proact_reg_temp;
|
7 |
+
|
8 |
+
global infile = "Input_data";
|
9 |
+
global outfile = "Analysis_data";
|
10 |
+
global outfile2 = "Latex_files";
|
11 |
+
|
12 |
+
use "$infile/proact_reg_temp";
|
13 |
+
|
14 |
+
generate Black_regpreact = pre_act_nonwhite/vote_age_nonwhite*100;
|
15 |
+
generate White_regpreact = pre_act_white/vote_age_white*100;
|
16 |
+
generate White_regpostact = post_act_white/vote_age_white*100;
|
17 |
+
generate Black_regpostact = post_act_nonwhite/vote_age_nonwhite*100;
|
18 |
+
|
19 |
+
generate total_vote = vote_age_nonwhite + vote_age_white;
|
20 |
+
generate sharenonwhite = vote_age_nonwhite/total_vote;
|
21 |
+
|
22 |
+
merge 1:1 fips using "$outfile/lynchallstates";
|
23 |
+
drop _merge;
|
24 |
+
|
25 |
+
** Pre Act results;
|
26 |
+
binscatter Black_regpreact lynchcapitamob, controls(sharenonwhite) absorb(State_FIPS) graphregion(color(white)) bgcolor(white)
|
27 |
+
ytitle("Percentage of black registered voters") xtitle("Black lynching rate") title("Pre-Act");
|
28 |
+
graph save "regpreact.gph", replace;
|
29 |
+
|
30 |
+
** Post Act results;
|
31 |
+
binscatter Black_regpostact lynchcapitamob, controls(sharenonwhite) absorb(State_FIPS) graphregion(color(white)) bgcolor(white)
|
32 |
+
ytitle("Percentage of black registered voters") xtitle("Black lynching rate") title("Post-Act");
|
33 |
+
graph save "regpostact.gph", replace;
|
34 |
+
|
35 |
+
graph combine regpreact.gph regpostact.gph, xcommon ycommon graphregion(color(white));
|
36 |
+
graph export "$outfile2/proact.eps", as(eps) preview(off) replace;
|
37 |
+
|
33/replication_package/Williams_files/Cleaning_files/Religion.do
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear
|
2 |
+
|
3 |
+
#delimit;
|
4 |
+
|
5 |
+
*** CLEANING FILE ***;
|
6 |
+
** Input data file: USReligionCensus2010.DTA from the 2010 Census (Religious Census: Religious Congregations Membership Study);
|
7 |
+
** Creates analysis data file: religion to be used in Createmain.do;
|
8 |
+
|
9 |
+
global infile = "Input_data";
|
10 |
+
global outfile = "Analysis_data";
|
11 |
+
|
12 |
+
|
13 |
+
use "$infile/USReligionCensus2010.DTA";
|
14 |
+
|
15 |
+
merge 1:1 fips using "$outfile/POP_2010_NHGIS";
|
16 |
+
|
17 |
+
** Church variables;
|
18 |
+
egen holder = rowtotal(ameadh amezadh cmeadh cgcadh nbcaadh nbcadh nmbcadh pnbcadh);
|
19 |
+
generate blackmemrate = (holder/Black_POP_2010)*1000;
|
20 |
+
|
21 |
+
keep fips blackmemrate;
|
22 |
+
|
23 |
+
save "$outfile/religion", replace;
|
33/replication_package/Williams_files/Cleaning_files/SFP93.do
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear all
|
2 |
+
|
3 |
+
*** CLEANING FILE ***;
|
4 |
+
** Input data file: sfp93_temp from the Southern Focus Poll;
|
5 |
+
** Creates analysis data file: sfp93 to be used in __.do;
|
6 |
+
|
7 |
+
#delimit;
|
8 |
+
|
9 |
+
global infile = "Input_data";
|
10 |
+
global outfile = "Analysis_data";
|
11 |
+
|
12 |
+
use "$infile/sfp93_temp";
|
13 |
+
|
14 |
+
** Create fips code;
|
15 |
+
rename STFIPS State_FIPS;
|
16 |
+
rename CNTY County_FIPS;
|
17 |
+
generate fips = State_FIPS*1000+County_FIPS;
|
18 |
+
|
19 |
+
|
20 |
+
** PATRIOT is when you were growing up, how important was it to your parents that you be patriotic;
|
21 |
+
** Note: This variable is available in other years but is a different question;
|
22 |
+
** 5 = dont know or no answer/ this is in reverse order i.e. 1 = important 4 = not at all important;
|
23 |
+
replace PATRIOT = . if PATRIOT == 5 & year == 1993;
|
24 |
+
** The variable pat will rescale patriot so that highest value means really patriotic;
|
25 |
+
generate pat = .;
|
26 |
+
replace pat = 1 if PATRIOT == 4;
|
27 |
+
replace pat = 2 if PATRIOT == 3;
|
28 |
+
replace pat = 3 if PATRIOT == 2;
|
29 |
+
replace pat = 4 if PATRIOT == 1;
|
30 |
+
|
31 |
+
save "$outfile/sfp93", replace;
|
32 |
+
|
33 |
+
|
33/replication_package/Williams_files/Cleaning_files/Setup_file.do
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear all
|
2 |
+
set more off
|
3 |
+
|
4 |
+
program main
|
5 |
+
* *** Add required packages from SSC to this list ***
|
6 |
+
local ssc_packages psacalc binscatter estout coefplot
|
7 |
+
|
8 |
+
foreach pkg in `ssc_packages' {
|
9 |
+
* install using ssc, but avoid re-installing if already present
|
10 |
+
capture which `pkg'
|
11 |
+
if _rc == 111 {
|
12 |
+
dis "Installing `pkg'"
|
13 |
+
quietly ssc install `pkg', replace
|
14 |
+
}
|
15 |
+
}
|
16 |
+
|
17 |
+
end
|
18 |
+
|
19 |
+
main
|
33/replication_package/Williams_files/Cleaning_files/Votingage.do
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clear
|
2 |
+
|
3 |
+
#delimit;
|
4 |
+
|
5 |
+
*** CLEANING FILE ***;
|
6 |
+
** Input data file: votingage1910_temp from IPUMS NHGIS;
|
7 |
+
** Creates analysis data file: votingage1910 to be used in Createmain.do;
|
8 |
+
|
9 |
+
global infile = "Input_data";
|
10 |
+
global outfile = "Analysis_data";
|
11 |
+
|
12 |
+
|
13 |
+
use "$infile/votingage1910_temp";
|
14 |
+
|
15 |
+
rename county County;
|
16 |
+
rename state State;
|
17 |
+
rename statea State_FIPS;
|
18 |
+
rename countya County_FIPS;
|
19 |
+
** To match with later years;
|
20 |
+
replace State_FIPS = State_FIPS/10;
|
21 |
+
replace County_FIPS = County_FIPS/10;
|
22 |
+
|
23 |
+
generate fips = State_FIPS*1000+County_FIPS;
|
24 |
+
|
25 |
+
generate White_votingage = a32001 + a32002 + a32003;
|
26 |
+
rename a32005 Black_votingage;
|
27 |
+
|
28 |
+
keep fips County State Black_votingage White_votingage;
|
29 |
+
|
30 |
+
save "$outfile/votingage1910", replace;
|
33/replication_package/Williams_files/Input_data/POP_1840_temp.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0bff06d076093fff6d838649177c1a56791d534892386d7483be3b48ce191d3e
|
3 |
+
size 113195
|
33/replication_package/Williams_files/Input_data/POP_1860_temp.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:61c153edc4c928d3cc14e3e0cf7b0530d264371d8ca0e0a03db124f713ad3041
|
3 |
+
size 270527
|
33/replication_package/Williams_files/Input_data/POP_1900_temp.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dc281f415e7f43d653dbca04481835576afbda3cea77247ae072f3794911ec5a
|
3 |
+
size 433971
|
33/replication_package/Williams_files/Input_data/POP_1910_temp.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dccfbd6ba73cf6860bf5bb938ce462aac77eb6994f7e95569b64f912f2fc132c
|
3 |
+
size 327275
|
33/replication_package/Williams_files/Input_data/POP_1920_temp.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:426e149365bdc92de8fc3bd509195274e64e96cce2926b00058f3efb1a4ce0e2
|
3 |
+
size 470875
|
33/replication_package/Williams_files/Input_data/POP_1930_temp.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bb10a4150e85d2b6e4bf0cf6e5d28a0356092448780e69c3037dd83bf382cbb2
|
3 |
+
size 266831
|
33/replication_package/Williams_files/Input_data/POP_2010_temp.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:037c590962a3779d60965458fc75e1d53b61a98a9f6131db9b29115ba93f48d8
|
3 |
+
size 578205
|
33/replication_package/Williams_files/Input_data/PartyDominance.dta
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1fcc221968187c2fd82cc6b7022c2bcae1dea3e073423ae328c9494823b95c46
|
3 |
+
size 33203
|