~dricottone/replications

ref: 0fa72074f87ccdc995d9c72096db1d10ffb5ef29 replications/AS08/Table 1.do -rw-r--r-- 4.2 KiB
0fa72074Dominic Ricottone Replication of AS08 2 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
clear all
cd "../data/anes"

*do "anes 2004 cumulative infile.do"
*svyset VCF0006A [pweight=VCF0009A], vce(linearized)

use "anes_timeseries_cdf_stata_20220916.dta"
svyset VCF0006a [pweight=VCF0009z], vce(linearized)

recode VCF0803 (1 2 3=1 "Liberal")   (4 9=2 "Moderate") (5 6 7=3 "Conservative") (else=.), generate(conserv)
recode VCF0830 (1 2 3=1 "Aid")       (4 9=2 "Moderate") (5 6 7=3 "Help self")    (else=.), generate(blackaid)
recode VCF0843 (1 2 3=1 "Decrease")  (4 9=2 "Moderate") (5 6 7=3 "Increase")     (else=.), generate(defspend)
recode VCF0809 (1 2 3=1 "Guarantee") (4 9=2 "Moderate") (5 6 7=3 "Help self")    (else=.), generate(entitlement)
recode VCF0806 (1 2 3=1 "Public")    (4 9=2 "Moderate") (5 6 7=3 "Private")      (else=.), generate(healthins)
recode VCF0839 (1 2 3=3 "Decrease")  (4 9=2 "Moderate") (5 6 7=1 "Increase")     (else=.), generate(govtspend) //NOTE: 'liberal' position is high instead of low
recode VCF0838 (1 2=3 "Illegal")     (3 9=2 "Moderate") (4=1 "Legal")            (else=.), generate(abortlegal) //NOTE: 'liberal' position is high instead of low

label variable conserv "Liberal-conservative identification"
label variable blackaid "Should improve socioeconomic position of blacks?"
label variable defspend "Should increase defense spending?"
label variable entitlement "Should guarantee jobs and std. of living?"
label variable healthins "Should provide health insurance?"
label variable govtspend "Should increase gov't services spending?"
label variable abortlegal "Should abortion be legal?"

egen miss = rowmiss(conserv blackaid defspend entitlement healthins govtspend abortlegal)

label variable miss "Missing count"

recode VCF0004 (1982 1984 1986 1988 1990=1 "80s") (1992 1994 1996 1998 2000=2 "90s") (2002 2004=3 "00s") (else=.), generate(decades_repl)
recode VCF0004 (1982 1984 1986 1988 1990=1 "80s") (1992 1994 1996 1998 2000=2 "90s") (2002 2004 2008=3 "00s") (2012 2016 2020=4 "10s") (else=.), generate(decades) //NOTE: no 2006/2010/2014/2018 studies

label variable decades_repl "Decade bins (replication)"
label variable decades "Decade bins"

/*
tab VCF0004 decades_repl
tab VCF0004 decades
*/

egen libpos = anycount(conserv blackaid defspend entitlement healthins govtspend abortlegal), values(1)
egen conspos = anycount(conserv blackaid defspend entitlement healthins govtspend abortlegal), values(3)
generate polar = abs(libpos - conspos)

label variable libpos "Liberal positions count"
label variable conspos "Conservative positions count"
label variable polar "Polarization scale"

recode polar (0 1=1 "Low") (2 3=2 "Moderate") (4 5 6 7=3 "High"), generate(r_polar)
recode r_polar (1 2=0 "Low to Moderate") (3=1 "High"), generate(hipolar)

label variable r_polar "Polarization bins"
label variable hipolar "High polarization"

recode VCF0702 (1=0 "Non") (2=1 "Voter") (else=.), generate(voter)
capture rename VCF0140a VCF0140A //for 2020 cumulative file
recode VCF0140A (1 2 3 4=1 "No college") (5=2 "Some college") (6 7=3 "College") (else=.), generate(educ)

label variable voter "Voter?"
label variable educ "Educational attainment"

generate elig = miss==0

// Replication
//All Respondents
mean hipolar if elig, over(decades_repl)

//Nonvoters
mean hipolar if elig & voter==0, over(decades_repl)
//Voters
mean hipolar if elig & voter==1, over(decades_repl)

//No College
mean hipolar if elig & educ==1, over(decades_repl)
//Some College
mean hipolar if elig & educ==2, over(decades_repl)
//College Grads
mean hipolar if elig & educ==3, over(decades_repl)

// Extension
//All Respondents
mean hipolar if elig, over(decades)

//Nonvoters
mean hipolar if elig & voter==0, over(decades)
//Voters
mean hipolar if elig & voter==1, over(decades)

//No College
mean hipolar if elig & educ==1, over(decades)
//Some College
mean hipolar if elig & educ==2, over(decades)
//College Grads
mean hipolar if elig & educ==3, over(decades)

// Expansion
//All Respondents
mean hipolar if elig, over(VCF0004)

//Nonvoters
mean hipolar if elig & voter==0, over(VCF0004)
//Voters
mean hipolar if elig & voter==1, over(VCF0004)

//No College
mean hipolar if elig & educ==1, over(VCF0004)
//Some College
mean hipolar if elig & educ==2, over(VCF0004)
//College Grads
mean hipolar if elig & educ==3, over(VCF0004)