anonymous-submission-acl2025's picture
add 30
57fe0a1
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