File size: 3,937 Bytes
57fe0a1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/stefanogagliarducci/Dropbox/various/published/womenpart/EJ/3 replication package/Log/Figure4a_4b.log
  log type:  text
 opened on:   8 Jul 2021, 12:08:37

. 
. clear

. use "$AnalysisData/bills_analysis_101-111_replication.dta", clear
(Bill-level data set. Each observation is an individual bill.)

. 
. replace numb_cosponsors_opposite=0 if numb_cosponsors==0
(3 real changes made)

. replace pct_cosponsors_opposite = numb_cosponsors_opposite/(numb_cosponsors+1)
(47,231 real changes made)

. 
. egen mean_numb_cosponsors = mean(numb_cosponsors), by(v2)

. 
. gen int x = numb_cosponsors if sponsor_female==1
(55,311 missing values generated)

. egen mean_numb_cosponsors_F = mean(x), by(v2)

. drop x

. 
. gen int x = numb_cosponsors if sponsor_female==0
(11,145 missing values generated)

. egen mean_numb_cosponsors_M = mean(x), by(v2)

. drop x

. 
. egen mean_pct_cosp_opposite = mean(pct_cosponsors_opposite), by(v2)

. replace mean_pct_cosp_opposite=mean_pct_cosp_opposite*100
(63,895 real changes made)

. 
. gen  x = pct_cosponsors_opposite if sponsor_female==1
(55,311 missing values generated)

. egen mean_pct_cosp_opposite_F = mean(x), by(v2)

. replace mean_pct_cosp_opposite_F=mean_pct_cosp_opposite_F*100
(63,895 real changes made)

. drop x

. 
. gen x = pct_cosponsors_opposite if sponsor_female==0
(11,145 missing values generated)

. egen mean_pct_cosp_opposite_M = mean(x), by(v2)

. replace mean_pct_cosp_opposite_M=mean_pct_cosp_opposite_M*100
(63,895 real changes made)

. drop x

. 
. 
. egen tag_v2 = tag(v2)

. keep if tag_v2==1
(63,884 observations deleted)

. 
. label var mean_numb_cosponsors "Total"

. label var mean_numb_cosponsors_F "Females"

. label var mean_numb_cosponsors_M "Males"

. 
. label var mean_pct_cosp_opposite "Total"

. label var mean_pct_cosp_opposite_F "Females"

. label var mean_pct_cosp_opposite_M "Males"

. 
. label var v2 "Congress"

. 
. sort v2

. 
. gen int year_elections = 1988 + 2*(v2-101)

. label var year_elections "Year Congress Elected"

. 
. scatter mean_numb_cosponsors mean_numb_cosponsors_F mean_numb_cosponsors_M year_elections, c(l l l) msym(o t s) /*
> */      mcolor(black black black) clcolor(black black black) lpattern(solid dash dash_dot)/*
> */      ytitle("Mean number of cosponsors") saving("$Output/Figure4a.gph", replace) name(Figure4a, replace)
(file /Users/stefanogagliarducci/Dropbox/various/published/womenpart/EJ/3 replication package/Output/Figure4a.gph saved)

. graph export "$Output/Figure4a.eps", as(eps) replace fontface(Times)
(file /Users/stefanogagliarducci/Dropbox/various/published/womenpart/EJ/3 replication package/Output/Figure4a.eps written in EPS format)

. 
. scatter mean_pct_cosp_opposite mean_pct_cosp_opposite_F mean_pct_cosp_opposite_M year_elections, c(l l l) msym(o t s) /*
> */      mcolor(black black black) clcolor(black black black) lpattern(solid dash dash_dot) /*
> */      ytitle("Pct. of Cosponsors of Opposite Party") saving("$Output/Figure4b.gph", replace) name(Figure4b, replace)
(file /Users/stefanogagliarducci/Dropbox/various/published/womenpart/EJ/3 replication package/Output/Figure4b.gph saved)

. graph export "$Output/Figure4b.eps", as(eps) replace fontface(Times)
(file /Users/stefanogagliarducci/Dropbox/various/published/womenpart/EJ/3 replication package/Output/Figure4b.eps written in EPS format)

. 
. 
. 
. 
. log close
      name:  <unnamed>
       log:  /Users/stefanogagliarducci/Dropbox/various/published/womenpart/EJ/3 replication package/Log/Figure4a_4b.log
  log type:  text
 closed on:   8 Jul 2021, 12:08:39
---------------------------------------------------------------------------------------------------------------------------------------------------------------------