|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
name: <unnamed> |
|
|
log: /Users/stefanogagliarducci/Dropbox/various/published/womenpart/EJ/3 replication package/Log/Figure5.log |
|
|
log type: text |
|
|
opened on: 8 Jul 2021, 12:08:39 |
|
|
|
|
|
. |
|
|
. use "$AnalysisData/bills_analysis_101-111_replication.dta", clear |
|
|
(Bill-level data set. Each observation is an individual bill.) |
|
|
|
|
|
. |
|
|
. egen tag_sponsor = tag(v2 sponsor_state_abbrev sponsor_district sponsor_term_served) |
|
|
|
|
|
. sum MV1_female |
|
|
|
|
|
Variable | Obs Mean Std. Dev. Min Max |
|
|
-------------+--------------------------------------------------------- |
|
|
MV1_female | 11,990 3.69171 36.05713 -100 100 |
|
|
|
|
|
. sum MV1_female if tag_sponsor==1 |
|
|
|
|
|
Variable | Obs Mean Std. Dev. Min Max |
|
|
-------------+--------------------------------------------------------- |
|
|
MV1_female | 898 .1593616 35.29735 -100 100 |
|
|
|
|
|
. |
|
|
. forvalues h=15/15 { |
|
|
2. DCdensity MV1_female if tag_sponsor==1 , breakpoint(0) h(`h') b(1) generate(Xj Yj r0 fhat se_fhat) |
|
|
3. local bandwidth = r(bandwidth) |
|
|
4. gen hi = fhat + 1.96*se_fhat |
|
|
5. gen lo = fhat - 1.96*se_fhat |
|
|
6. graph twoway (scatter Yj Xj, msym(circle_hollow) mcolor(gray)) |
|
|
(line fhat r0 if r0 < 0, lcolor(black) lwidth(medthick)) |
|
|
(line fhat r0 if r0 > 0, lcolor(black) lwidth(medthick)) |
|
|
(line hi r0 if r0 < 0, lcolor(black) lwidth(vthin)) |
|
|
(line lo r0 if r0 < 0, lcolor(black) lwidth(vthin)) |
|
|
(line hi r0 if r0 > 0, lcolor(black) lwidth(vthin)) |
|
|
(line lo r0 if r0 > 0, lcolor(black) lwidth(vthin)), |
|
|
xline(0, lcolor(black)) legend(off) title("All") |
|
|
7. graph save "$Output/Figure5_McCraryDensityTest_PartyAll_bw`bandwidth'.gph", replace |
|
|
8. drop Xj Yj r0 fhat se_fhat hi lo |
|
|
9. } |
|
|
|
|
|
Discontinuity estimate (log difference in height): -.427192664 |
|
|
(.292536715) |
|
|
Performing LLR smoothing. |
|
|
202 iterations will be performed |
|
|
.................... |
|
|
(63,693 missing values generated) |
|
|
(63,693 missing values generated) |
|
|
--Break-- |
|
|
r(1); |
|
|
|
|
|
end of do-file |
|
|
--Break-- |
|
|
r(1); |
|
|
|
|
|
end of do-file |
|
|
|
|
|
--Break-- |
|
|
r(1); |
|
|
|
|
|
. do "/var/folders/zl/qmyjjcp168q5hwrw6c0x3jwm0000gn/T//SD63466.000000" |
|
|
|
|
|
. clear |
|
|
|
|
|
. set mem 500m |
|
|
set memory ignored. |
|
|
Memory no longer needs to be set in modern Statas; memory adjustments are performed on the fly automatically. |
|
|
|
|
|
. set more off |
|
|
|
|
|
. set logtype text |
|
|
|
|
|
. set matsize 3000 |
|
|
set matsize ignored. |
|
|
Matrix sizes are no longer limited by c(matsize) in modern Statas. Matrix sizes are now limited by flavor of Stata. See limits for more details. |
|
|
|
|
|
. |
|
|
. cap log close |
|
|
|