File size: 3,123 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
clear
set scheme s1color
set mem 500m
set more off
set logtype text
set matsize 100

cap log close
log using "$Log/Table2.log", replace


use "$AnalysisData/bills_analysis_101-111_replication.dta", clear
keep private v2 sponsor_state_abbrev sponsor_district sponsor_term_served sponsor_female sponsor_party sponsor_age sponsor_tenure_run comc comr /*
*/ lnpop lnarea MV1_democrat numb_cosponsors_opposite numb_cosponsors pct_cosponsors_opposite plaw_cbp passh women_friend* HRnumber /*
*/ MV1_female minor house_* sponsor_age ivycoll black occ0 occ1 occ2 occ3 occ4 borninstate /*
*/ pct_black pct_urban pct_for_born pct_age_over65 lninc sponsor_state_icpsr

cap drop pct_cosponsors_opposite
gen pct_cosponsors_opposite = 100*numb_cosponsors_opposite/(1+numb_cosponsors)
replace pct_cosponsors_opposite=. if pct_cosponsors_opposite>100
egen tag_bill = tag(v2 HRnumber)
egen tag_sponsor = tag(v2 sponsor_state_abbrev sponsor_district sponsor_term_served)

keep if tag_bill==1

bysort v2 sponsor_state_abbrev sponsor_district sponsor_term_served: egen tot_bills=count(v2)


local if1 = "if sponsor_party==100 | sponsor_party==200"
local if2 = "if sponsor_party==100"
local if3 = "if sponsor_party==200"

local and1 = "& (sponsor_party==100 | sponsor_party==200)"
local and2 = "& sponsor_party==100"
local and3 = "& sponsor_party==200"


forvalue j=1/3{
  if `j'==1 {
     di in ye ""
     di in ye ""
     di in ye "**********************************"
	 di in ye "      ALL                         "
	 di in ye "**********************************"
	 di in ye ""
	 di in ye ""
  }
  else if `j'==2 {
     di in ye ""
     di in ye ""
     di in ye "**********************************"
	 di in ye "      DEMOCRATS                   "
	 di in ye "**********************************"
	 di in ye ""
	 di in ye ""
  }  
  else if `j'==3 {
     di in ye ""
     di in ye ""
     di in ye "**********************************"
	 di in ye "      REPUBLICANS                 "
	 di in ye "**********************************"
	 di in ye ""
	 di in ye ""
  }
  
  di "sum tot_bills if tag_sponsor==1 & sponsor_female!=. `and`j'', d"
  sum tot_bills if tag_sponsor==1 & sponsor_female!=. `and`j'', d
  di "sum tot_bills if tag_sponsor==1 & sponsor_female==0 `and`j'', d"
  sum tot_bills if tag_sponsor==1 & sponsor_female==0 `and`j'', d
  di "sum tot_bills if tag_sponsor==1 & sponsor_female==1 `and`j'', d"
  sum tot_bills if tag_sponsor==1 & sponsor_female==1 `and`j'', d

  di "sum numb_cosponsors `if`j'', d"
  sum numb_cosponsors `if`j'', d
  di "sum pct_cosponsors_opposite `if`j'', d"
  sum pct_cosponsors_opposite `if`j'', d

  di "sum numb_cosponsors if sponsor_female==0 `and`j'', d"
  sum numb_cosponsors if sponsor_female==0 `and`j'', d
  di "sum pct_cosponsors_opposite if sponsor_female==0 `and`j'', d"
  sum pct_cosponsors_opposite if sponsor_female==0 `and`j'', d

  di "sum numb_cosponsors if sponsor_female==1 `and`j'', d"
  sum numb_cosponsors if sponsor_female==1 `and`j'', d
  di "sum pct_cosponsors_opposite if sponsor_female==1 `and`j'', d"
  sum pct_cosponsors_opposite if sponsor_female==1 `and`j'', d
}

log close