|
|
|
|
|
|
|
|
| |
| |
| |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| clear all
|
| use "$path\data\SurveyStageI_AB_final.dta"
|
|
|
|
|
| replace prior=59 if prior<59
|
| replace prior=102 if prior>102&prior!=.
|
|
|
|
|
| sum prior if T1==1, d
|
| hist prior if T1==1, width(1) xaxis(1)
|
| xtitle("Prior belief (T74)", axis(1)) xla(60 65 70 75 80 85 90 95 100, axis(1)) frac
|
| graph save "$output\prior_hist_T74.gph", replace
|
|
|
|
|
| sum prior if T2==1, d
|
| hist prior if T2==1, width(1) xaxis(1)
|
| xtitle("Prior belief (T94)", axis(1)) xla(60 65 70 75 80 85 90 95 100, axis(1)) frac
|
| graph save "$output\prior_hist_T94.gph", replace
|
|
|
|
|
| sum prior if rand==0, d
|
| hist prior if rand==0, width(1) xaxis(1)
|
| xtitle("Prior belief (Control group)", axis(1)) xla(60 65 70 75 80 85 90 95 100, axis(1)) frac
|
| graph save "$output\prior_hist_cont.gph", replace
|
|
|
|
|
| graph combine "$output\prior_hist_T74.gph" "$output\prior_hist_T94.gph" "$output\prior_hist_cont.gph", cols(1)
|
| graph export "$output\Priorhist_treatmentgroups.pdf", replace
|
|
|
|
|
|
|
|
|
|
|
| mean prior [pweight=pweight] if T1==1
|
| mean prior [pweight=pweight] if T2==1
|
| mean prior [pweight=pweight] if rand==0
|
|
|
|
|
| ksmirnov prior if rand!=0, by(T1)
|
|
|
|
|
|
|
|
|
|
|
|
|
| use "$path\data\SurveyStageI_AB_final.dta", clear
|
|
|
|
|
| replace prior=59 if prior<59
|
| replace prior=102 if prior>102&prior!=.
|
|
|
|
|
| hist prior, width(1) xaxis(1)
|
| xtitle("a) Prior beliefs (pooled)", axis(1)) xla(60 65 70 75 80 85 90 95 100, axis(1)) frac
|
| graph save "$output\pooled.gph", replace
|
|
|
|
|
| hist prior if prior1==0, width(1) xaxis(1)
|
| xtitle("b) Prior beliefs (non-incentivized)", axis(1)) xla(60 65 70 75 80 85 90 95 100, axis(1)) frac
|
| graph save "$output\noninc.gph", replace
|
|
|
|
|
| hist prior if prior1==1&(T1==1|RAND6==1), width(1) xaxis(1)
|
| xtitle("c) Prior beliefs (incentivized based on ACS)", axis(1)) xla(60 65 70 75 80 85 90 95 100, axis(1)) frac
|
| graph save "$output\inc_ACS.gph", replace
|
|
|
|
|
| hist prior if prior1==1&(T2==1|RAND6==0), width(1) xaxis(1)
|
| xtitle("d) Prior beliefs (incentivized based on CPS)", axis(1)) xla(60 65 70 75 80 85 90 95 100, axis(1)) frac
|
| graph save "$output\inc_CPS.gph", replace
|
|
|
| graph combine "$output\pooled.gph" "$output\noninc.gph" "$output\inc_ACS.gph" "$output\inc_CPS.gph", cols(2)
|
| graph export "$output\Priorhist_all4.pdf", replace
|
|
|
|
|
|
|
|
|
| use "$path\data\SurveyStageI_AB_final.dta", clear
|
|
|
|
|
|
|
| sum prior,d
|
|
|
| sum prior if prior1==0,d
|
|
|
| sum prior if prior1==1&(T1==1|RAND6==1),d
|
|
|
| sum prior if prior1==1&(T2==1|RAND6==0),d
|
|
|
|
|
| mean prior [pweight=pweight]
|
| mean prior [pweight=pweight] if prior1==0
|
| mean prior [pweight=pweight] if prior1==1&(T1==1|RAND6==1)
|
| mean prior [pweight=pweight] if prior1==1&(T2==1|RAND6==0)
|
|
|
|
|
|
|
|
|
|
|
| clear all
|
| set scheme s2mono
|
|
|
|
|
|
|
| |
| |
| |
| |
|
|
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
|
|
| prtesti 544 101 490 58, count
|
|
|
|
|
| prtesti 230 50 268 24, count
|
|
|
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
|
|
| prtesti 544 3 490 17, count
|
|
|
|
|
| prtesti 230 2 268 8, count
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
|
|
| mat R=J(2,5,.)
|
|
|
|
|
| local pvalue1 = 0.01
|
|
|
|
|
| mat R[1,1] = 0.1857
|
| mat R[2,1] = 0.1184
|
|
|
|
|
| mat R[1,2] = 0.1530
|
| mat R[2,2] = 0.0898
|
|
|
|
|
| mat R[1,3] = 0.2183
|
| mat R[2,3] = 0.1470
|
|
|
|
|
| mat R[1,4]=1
|
| mat R[2,4]=2
|
|
|
| mat R[1,5] = 1
|
| mat R[2,5] = 1
|
|
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat1
|
| save `cat1'
|
| restore
|
|
|
|
|
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
|
|
|
|
| local pvalue2 = 0.001
|
|
|
|
|
| mat R[1,1] = 0.2174
|
| mat R[2,1] = 0.0896
|
|
|
|
|
| mat R[1,2] = 0.1641
|
| mat R[2,2] = 0.0554
|
|
|
|
|
| mat R[1,3] = 0.2707
|
| mat R[2,3] = 0.1237
|
|
|
| mat R[1,4]=1
|
| mat R[2,4]=2
|
|
|
| mat R[1,5] = 2
|
| mat R[2,5] = 2
|
|
|
|
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat2
|
| save `cat2'
|
| restore
|
|
|
|
|
|
|
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
|
|
|
|
| local pvalue3 = 0.001
|
|
|
|
|
| mat R[1,1] = 0.0056
|
| mat R[2,1] = 0.0347
|
|
|
|
|
| mat R[1,2] = -0.0007
|
| mat R[2,2] = 0.0185
|
|
|
|
|
| mat R[1,3] = 0.0117
|
| mat R[2,3] = 0.0509
|
|
|
| mat R[1,4]=1
|
| mat R[2,4]=2
|
|
|
| mat R[1,5] = 3
|
| mat R[2,5] = 3
|
|
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat3
|
| save `cat3'
|
| restore
|
|
|
|
|
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
|
|
| local pvalue4 = 0.09
|
|
|
|
|
| mat R[1,1] = 0.0087
|
| mat R[2,1] = 0.0299
|
|
|
|
|
| mat R[1,2] = -0.0033
|
| mat R[2,2] = 0.0095
|
|
|
|
|
| mat R[1,3] = 0.0201
|
| mat R[2,3] = 0.0502
|
|
|
| mat R[1,4]=1
|
| mat R[2,4]=2
|
|
|
| mat R[1,5] = 4
|
| mat R[2,5] = 4
|
|
|
|
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat4
|
| save `cat4'
|
| restore
|
|
|
|
|
|
|
| clear
|
|
|
| local numcats = "1 2 3 4"
|
| foreach a of local numcats {
|
| append using `cat`a''
|
| }
|
|
|
|
|
|
|
| gen s1 = R5
|
| gen s2 = .
|
| replace s2 = s1 - 0.2 if R5 == 1
|
| replace s2 = s1 - 0.6 if R5 == 2
|
| replace s2 = s1 - 1.0 if R5 == 3
|
| replace s2 = s1 - 1.4 if R5 == 4
|
| gen p1 = (s2 - 0.1) - .6
|
| gen p2 = s2 + 0.1 - .6
|
|
|
|
|
|
|
| local i = 0
|
| foreach cat of local numcats {
|
| forval rel = 1/2 {
|
| local ++i
|
| sum R1 if R4 == `rel' & R5 == `cat'
|
| local barval`i' = trim("`: di %9.2f r(mean)'")
|
| }
|
| }
|
|
|
|
|
| global barlabels `"0.2 "Gender" 0.8 "Pol. orientation" 1.4 "Gender" 2.0 "Pol. orientation""'
|
| global pvalues `"0.29 0.2 "p-value < `pvalue1'" 0.29 0.8 "p-value < `pvalue2'" 0.25 1.4 "p-value < `pvalue3'" 0.25 2.0 "p-value = `pvalue4'""'
|
| global grouplabels `"0.32 0.5 "Petition I (increase reporting)" 0.32 1.7 "Petition II (abolish reporting)""'
|
| global bargroups = `"0.02 0.1 "Women" 0.02 0.3 "Men" 0.02 0.7 "Dem." 0.02 0.9 "Non-Dem." 0.02 1.3 "Women" 0.02 1.5 "Men" 0.02 1.9 "Dem." 0.02 2.1 "Non-Dem.""'
|
| global barvalues = `"0.045 0.1 "`barval1'" 0.045 0.3 "`barval2'" 0.045 0.7 "`barval3'" 0.045 0.9 "`barval4'" 0.061 1.3 "`barval5'" 0.061 1.5 "`barval6'" 0.061 1.9 "`barval7'" 0.061 2.1 "`barval8'""'
|
|
|
|
|
| twoway (bar R1 p1 if R4 == 1, barw(0.18) fi(inten50) lc(black) lw(medium)) (bar R1 p2 if R4 == 2, barw(0.18) fi(inten20) lc(black) lw(medium))
|
| (rcap R3 R2 p1 if R4 == 1, lc(gs5)) (rcap R3 R2 p2 if R4 == 2, lc(gs5)), legend(off) graphregion(color(white))
|
| yscale(range(0.35)) yla(0(0.05)0.25) xla($barlabels, labsize(2.5)) text($pvalues, size(2.5)) text($grouplabels, size(2.8)) text($bargroups, size(2.5)) text($barvalues, size(2.5))
|
| ytitle("Fraction of respondents who signed", height(5))
|
| graph export "$output\fig_petitions0.pdf", replace
|
|
|
|
|
|
|
| use "$path\data\SurveyStageI_AB_final.dta", clear
|
|
|
| keep rand wave donation democrat republican gender pweight
|
|
|
|
|
| keep if rand==0
|
|
|
| gen women=(gender==1)
|
| gen men=(gender==0)
|
|
|
| gen donationmen=donation if gender==0
|
| gen donationwoman=donation if gender==1
|
| gen donationrepub=donation if republican==1
|
| gen donationdem =donation if democrat==1
|
| gen donationnondem=donation if democrat==0
|
|
|
| lab var donationmen "Men"
|
| lab var donationwoman "Women"
|
| lab var donationrepub "Republican"
|
| lab var donationdem "Democrat"
|
| lab var donationnondem "Non-Democrat"
|
|
|
|
|
|
|
| local outcome = "donation"
|
|
|
|
|
|
|
|
|
| mat R=J(2,5,.)
|
|
|
|
|
| local row=1
|
| foreach X in women men {
|
| mean `outcome' if `X' == 1 [pweight=pweight]
|
| mat R[`row',1] = e(b)
|
| local ++row
|
| }
|
|
|
|
|
| mean `outcome' if women == 1 [pweight=pweight]
|
| matrix meanwomen=e(b)
|
|
|
|
|
| reg `outcome' men [pweight=pweight], robust
|
| local pvalue1 = trim("`: di %9.3f 2*ttail(e(df_r), abs(_b[men]/_se[men]))'")
|
|
|
| local row=1
|
| foreach X in women men {
|
| mat R[`row',2]= meanwomen[1,1] + _b[men]-1.96*_se[men]
|
| mat R[`row',3]= meanwomen[1,1] + _b[men]+1.96*_se[men]
|
| mat R[`row',4]=`row'
|
| mat R[`row',5] = 1
|
| local ++row
|
| }
|
|
|
|
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat1
|
| save `cat1'
|
| restore
|
|
|
|
|
| keep if democrat==1|republican==1
|
|
|
|
|
| mat R=J(2,5,.)
|
|
|
|
|
| local row=1
|
| foreach X in democrat republican {
|
| mean `outcome' if `X' == 1 [pweight=pweight]
|
| mat R[`row',1] = e(b)
|
| local ++row
|
| }
|
|
|
|
|
| mean `outcome' if democrat == 1
|
| matrix meandemocrat=e(b)
|
|
|
|
|
| reg `outcome' republican [pweight=pweight], robust
|
| local pvalue2 = trim("`: di %9.3f 2*ttail(e(df_r), abs(_b[republican]/_se[republican]))'")
|
|
|
| local row=1
|
| foreach X in women men {
|
| mat R[`row',2]= meandemocrat[1,1] + _b[republican]-1.96*_se[republican]
|
| mat R[`row',3]= meandemocrat[1,1] + _b[republican]+1.96*_se[republican]
|
| mat R[`row',4]=`row'
|
| mat R[`row',5] = 2
|
| local ++row
|
| }
|
|
|
|
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat2
|
| save `cat2'
|
| restore
|
|
|
|
|
| clear
|
|
|
|
|
| local numcats = "1 2"
|
| foreach a of local numcats {
|
| append using `cat`a''
|
| }
|
|
|
|
|
|
|
| gen s1 = R5
|
| gen s2 = .
|
| replace s2 = s1 - 0.2 if R5 == 1
|
| replace s2 = s1 - 0.6 if R5 == 2
|
| replace s2 = s1 - 1.0 if R5 == 3
|
| replace s2 = s1 - 1.4 if R5 == 4
|
| gen p1 = (s2 - 0.1) - .6
|
| gen p2 = s2 + 0.1 - .6
|
|
|
|
|
| local i = 0
|
| foreach p of local numcats {
|
| forval rel = 1/2 {
|
| local ++i
|
| sum R1 if R4 == `rel' & R5 == `p'
|
| local barval`i' = trim("`: di %9.2f r(mean)'")
|
| }
|
| }
|
|
|
|
|
| global barlabels `"0.2 "Gender" 0.8 "Pol. orientation" "'
|
| global pvalues `"108 0.2 "p-value = `pvalue1'" 108 0.8 "p-value < 0.01" "'
|
| global grouplabels `"118 0.5 "Amount donated""'
|
| global bargroups = `"10 0.1 "Women" 10 0.3 "Men" 10 0.7 "Dem." 10 0.9 "Repub." "'
|
| global barvalues = `"20.045 0.1 "`barval1'" 20.045 0.3 "`barval2'" 20.045 0.7 "`barval3'" 20.045 0.9 "`barval4'" "'
|
|
|
|
|
| twoway (bar R1 p1 if R4 == 1, barw(0.18) fi(inten50) lc(black) lw(medium)) (bar R1 p2 if R4 == 2, barw(0.18) fi(inten20) lc(black) lw(medium))
|
| (rcap R3 R2 p2 if R4 == 2, lc(gs5)), legend(off) graphregion(color(white))
|
| yscale(range(2)) yla(0(20)120) xla($barlabels, labsize(5.5)) text($pvalues, size(5.5)) text($grouplabels, size(6.0)) text($bargroups, size(5.0)) text($barvalues, size(5.5))
|
| ytitle("Amount donated", size(5.5) height(5))
|
| graph export "$output\fig_donation0.pdf", replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| use "$path\data\SurveyStageI_AB_final.dta", clear
|
|
|
|
|
| drop if rand==0
|
|
|
|
|
|
|
| gen randnew=0 if wave==1&RAND4==9&rand==1
|
| replace randnew=1 if wave==1&RAND4==10&rand==1
|
| replace randnew=2 if wave==1&RAND4==11&rand==1
|
| replace randnew=3 if wave==2&RAND4==10&rand==1
|
| replace randnew=4 if wave==2&RAND4==11&rand==1
|
|
|
|
|
| replace randnew=5 if wave==1&RAND4==9&rand==2
|
| replace randnew=6 if wave==1&RAND4==10&rand==2
|
| replace randnew=7 if wave==1&RAND4==11&rand==2
|
| replace randnew=8 if wave==2&RAND4==10&rand==2
|
| replace randnew=9 if wave==2&RAND4==11&rand==2
|
|
|
|
|
| label define randnew 0 "T{sup:74} (Age 25)" 1 "T{sup:74} (HS degree)" 2 "T{sup:74} (Same occu. group)" 3 "T{sup:74} (Same job)" 4 "T{sup:74} (Parent)" 5 "T{sup:94} (age 25)" 6 "T{sup:94} (HS degree)" 7 "T{sup:94} (same occu)" 8 "T{sup:94} (Same job)" 9 "T{sup:94} (Parent)"
|
| label values randnew randnew
|
|
|
|
|
| replace posterior=101 if posterior>101&posterior!=.
|
| replace posterior=49 if posterior<49
|
|
|
|
|
| twoway histogram posterior if randnew==0, width(1) title("T{sup:74} (Age 25)") fraction width(5) xline(74, lcolor(blue)) xla(50 75 95 100) yscale(range(0 0.52)) name(graph1, replace)
|
|
|
| twoway histogram posterior if randnew==1, width(1) title("T{sup:74} (HS degree)") fraction width(5) xline(74, lcolor(blue)) xla(50 75 95 100) yscale(range(0 0.52)) name(graph2, replace)
|
|
|
| twoway histogram posterior if randnew==2, width(1) title("T{sup:74} (Same occu. group)") fraction width(5) xline(74, lcolor(blue)) xla(50 75 95 100) yscale(range(0 0.52)) name(graph3, replace)
|
|
|
| twoway histogram posterior if randnew==3, width(1) title("T{sup:74} (Same job)") fraction width(5) xline(74, lcolor(blue)) xla(50 75 95 100) yscale(range(0 0.52)) name(graph4, replace)
|
|
|
| twoway histogram posterior if randnew==4, width(1) title("T{sup:74} (Parent)") fraction width(5) xline(74, lcolor(blue)) xla(50 75 95 100) yscale(range(0 0.52)) name(graph5, replace)
|
|
|
|
|
| graph combine graph1 graph2 graph3 graph4 graph5, rows(1) xsize(6) ysize(1.5) name(coefplot, replace)
|
| graph export "$output\posterior_histog_treat_row1_win1.pdf", replace
|
|
|
|
|
|
|
| twoway histogram posterior if randnew==5, width(1) title("T{sup:94} (Age 25)") fraction width(5) xline(94, lcolor(green)) xla(50 75 95 100) yscale(range(0 0.52)) name(graph1, replace)
|
|
|
| twoway histogram posterior if randnew==6, width(1) title("T{sup:94} (HS degree)") fraction width(5) xline(94, lcolor(green)) xla(50 75 95 100) yscale(range(0 0.52)) name(graph2, replace)
|
|
|
| twoway histogram posterior if randnew==7, width(1) title("T{sup:94} (Same occu. group)") fraction width(5) xline(94, lcolor(green)) xla(50 75 95 100) yscale(range(0 0.52)) name(graph3, replace)
|
|
|
| twoway histogram posterior if randnew==8, width(1) title("T{sup:94} (Same job)") fraction width(5) xline(94, lcolor(green)) xla(50 75 95 100) yscale(range(0 0.52)) name(graph4, replace)
|
|
|
| twoway histogram posterior if randnew==9, width(1) title("T{sup:94} (Parent)") fraction width(5) xline(94, lcolor(green)) xla(50 75 95 100) yscale(range(0 0.52)) name(graph5, replace)
|
|
|
| graph combine graph1 graph2 graph3 graph4 graph5, rows(1) xsize(6) ysize(1.5) name(coefplot, replace)
|
| graph export "$output\posterior_histog_treat_row2_win1.pdf", replace
|
|
|
|
|
|
|
|
|
|
|
|
|
| clear all
|
| set scheme s2mono
|
|
|
| global legend = `"label(1 "T{sup:74}") label(2 "T{sup:94}") order(1 2) size(medium)"'
|
|
|
| use "$path\data\SurveyStageI_AB_final.dta", clear
|
|
|
| keep rand T1 T2 wave donation democrat republican indep otherpol gender pweight prior midwest south west age1 age2 age3 age4 anychildren loghhinc associatemore fulltime parttime selfemp unemp student
|
|
|
|
|
|
|
|
|
| drop if rand==0
|
|
|
| gen donationmen=donation if gender==0
|
| gen donationwoman=donation if gender==1
|
| gen donationrepub=donation if republican==1
|
| gen donationdem =donation if democrat==1
|
| gen donationnondem=donation if democrat==0
|
|
|
| local out1 = "donation"
|
| local out2 = "donationmen"
|
| local out3 = "donationwoman"
|
| local out4 = "donationdem"
|
| local out5 = "donationnondem"
|
| local numcats = "1 2 3 4 5"
|
|
|
|
|
|
|
|
|
| forvalues a=1/5{
|
|
|
|
|
| mat R=J(2,5,.)
|
|
|
|
|
| local row=1
|
| foreach X in T1 T2{
|
| mean `out`a'' if `X' == 1 [pweight=pweight]
|
| mat R[`row',1] = e(b)
|
| local ++row
|
| }
|
|
|
|
|
|
|
| reg `out`a'' T2 $controls [pweight=pweight], robust
|
| local pvalue`a' = trim("`: di %9.3f 2*ttail(e(df_r), abs(_b[T2]/_se[T2]))'")
|
|
|
|
|
| local row=1
|
| foreach X in T1 T2 {
|
| mat R[`row',2]= R[1,1] + _b[T2]-1.96*_se[T2]
|
| mat R[`row',3]= R[1,1] + _b[T2]+1.96*_se[T2]
|
| mat R[`row',4]=`row'
|
| mat R[`row',5] = `a'
|
| local ++row
|
| }
|
|
|
|
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat`a'
|
| save `cat`a''
|
| restore
|
|
|
| }
|
|
|
|
|
|
|
| clear
|
| foreach a of local numcats {
|
| append using `cat`a''
|
| }
|
|
|
|
|
|
|
| gen s1 = R5
|
| gen s2 = .
|
| replace s2 = s1 - 0.2 if R5 == 1
|
| replace s2 = s1 - 0.6 if R5 == 2
|
| replace s2 = s1 - 1.0 if R5 == 3
|
| replace s2 = s1 - 1.4 if R5 == 4
|
| replace s2 = s1 - 1.8 if R5 == 5
|
|
|
| gen pos1 = (s2 - 0.1) - .6
|
| gen pos2 = s2 + 0.1 - .6
|
|
|
|
|
|
|
| local i = 0
|
| foreach pos of local numcats {
|
| forval rel = 1/2 {
|
| local ++i
|
| sum R1 if R4 == `rel' & R5 == `pos'
|
| local barval`i' = trim("`: di %9.2f r(mean)'")
|
| }
|
| }
|
|
|
| global barlabels `"0.2 "All" 0.8 "Men" 1.4 "Women" 2.0 "Democrats" 2.6 "Non-Democrats" "'
|
| global pvalues `"120 0.2 "p-value = `pvalue1'" 120 0.8 "p-value = `pvalue2'" 120 1.4 "p-value = `pvalue3'" 120 2.0 "p-value = `pvalue4'" 120 2.6 "p-value = `pvalue5'" "'
|
| global barvalues = `"60 0.1 "`barval1'" 60 0.3 "`barval2'" 60 0.7 "`barval3'" 60 0.9 "`barval4'" 60 1.3 "`barval5'" 60 1.5 "`barval6'" 60 1.9 "`barval7'" 60 2.1 "`barval8'" 60 2.5 "`barval9'" 60 2.7 "`barval10'" "'
|
|
|
|
|
| twoway (bar R1 pos1 if R4 == 1, barw(0.18) fi(inten50) lc(black) lw(medium)) (bar R1 pos2 if R4 == 2, barw(0.18) fi(inten20) lc(black) lw(medium))
|
| (rcap R3 R2 pos2 if R4 == 2, lc(gs5)), legend(${legend}) graphregion(color(white))
|
| yscale(range(103)) yla(50(25)125) xla($barlabels, labsize(2.5)) text($pvalues, size(2.5)) text($barvalues, size(2.5))
|
| ytitle("Amount donated", height(5))
|
|
|
| graph export "$output\fig_donation_AB_demnondem.pdf", replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| clear all
|
|
|
| |
| |
|
|
|
|
|
|
| prtesti 1531 259 1500 220, count
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| prtesti 798 161 766 134, count
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| prtesti 733 98 734 86, count
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| prtesti 447 106 450 99, count
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| prtesti 558 63 557 60, count
|
|
|
| set scheme s2mono
|
|
|
| global legend = `"label(1 "T{sup:74}") label(2 "T{sup:94}") order(1 2) size(medium)"'
|
|
|
|
|
|
|
|
|
|
|
| mat R=J(2,5,.)
|
|
|
| local pvalue1 = 0.09
|
|
|
|
|
| mat R[1,1] = 0.16917
|
| mat R[2,1] = 0.14667
|
|
|
|
|
| mat R[1,2] = 0.1504
|
| mat R[2,2] = 0.1288
|
|
|
|
|
| mat R[1,3] = 0.1879
|
| mat R[2,3] = 0.1646
|
|
|
| mat R[1,4]=1
|
| mat R[2,4]=2
|
|
|
| mat R[1,5] = 1
|
| mat R[2,5] = 1
|
|
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat1
|
| save `cat1'
|
| restore
|
|
|
|
|
|
|
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
|
|
| local pvalue2 = 0.18
|
|
|
|
|
| mat R[1,1] = 0.2018
|
| mat R[2,1] = 0.1749
|
|
|
|
|
| mat R[1,2] = .1739107
|
| mat R[2,2] = .1480308
|
|
|
|
|
| mat R[1,3] = .2295981
|
| mat R[2,3] = .2018387
|
|
|
| mat R[1,4]=1
|
| mat R[2,4]=2
|
|
|
| mat R[1,5] = 2
|
| mat R[2,5] = 2
|
|
|
|
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat2
|
| save `cat2'
|
| restore
|
|
|
|
|
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| local pvalue3 = 0.34
|
|
|
|
|
| mat R[1,1] = 0.1337
|
| mat R[2,1] = 0.1172
|
|
|
|
|
| mat R[1,2] = 0.1091
|
| mat R[2,2] = 0.0939
|
|
|
|
|
| mat R[1,3] = 0.1583
|
| mat R[2,3] = 0.1404
|
|
|
| mat R[1,4]=1
|
| mat R[2,4]=2
|
|
|
| mat R[1,5] = 3
|
| mat R[2,5] = 3
|
|
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat3
|
| save `cat3'
|
| restore
|
|
|
|
|
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| local pvalue4 = 0.54
|
|
|
|
|
| mat R[1,1] = 0.2371
|
| mat R[2,1] = 0.22
|
|
|
|
|
| mat R[1,2] = .1977074
|
| mat R[2,2] = .1817263
|
|
|
|
|
| mat R[1,3] = .2765656
|
| mat R[2,3] = .2582737
|
|
|
| mat R[1,4]=1
|
| mat R[2,4]=2
|
|
|
| mat R[1,5] = 4
|
| mat R[2,5] = 4
|
|
|
|
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat4
|
| save `cat4'
|
| restore
|
|
|
|
|
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| local pvalue5 = 0.78
|
|
|
|
|
| mat R[1,1] = 0.1129
|
| mat R[2,1] = 0.1077
|
|
|
|
|
| mat R[1,2] = .0866447
|
| mat R[2,2] = .0819734
|
|
|
|
|
| mat R[1,3] = .1391617
|
| mat R[2,3] = .1334665
|
|
|
| mat R[1,4]=1
|
| mat R[2,4]=2
|
|
|
| mat R[1,5] = 5
|
| mat R[2,5] = 5
|
|
|
|
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat5
|
| save `cat5'
|
| restore
|
|
|
|
|
|
|
| clear
|
|
|
| local numcats = "1 2 3 4 5"
|
| foreach a of local numcats {
|
| append using `cat`a''
|
| }
|
|
|
|
|
|
|
|
|
| gen s1 = R5
|
| gen s2 = .
|
| replace s2 = s1 - 0.2 if R5 == 1
|
| replace s2 = s1 - 0.6 if R5 == 2
|
| replace s2 = s1 - 1.0 if R5 == 3
|
| replace s2 = s1 - 1.4 if R5 == 4
|
| replace s2 = s1 - 1.8 if R5 == 5
|
| gen pos1 = (s2 - 0.1) - .6
|
| gen pos2 = s2 + 0.1 - .6
|
|
|
|
|
| local i = 0
|
| foreach pos of local numcats {
|
| forval rel = 1/2 {
|
| local ++i
|
| sum R1 if R4 == `rel' & R5 == `pos'
|
| local barval`i' = trim("`: di %9.2f r(mean)'")
|
| }
|
| }
|
|
|
| global barlabels `"0.2 "All" 0.8 "Women" 1.4 "Men" 2.0 "Democrats" 2.6 "Non-Democrats" "'
|
| global pvalues `"0.29 0.2 "p-value = `pvalue1'" 0.29 0.8 "p-value = `pvalue2'" 0.29 1.4 "p-value = `pvalue3'" 0.29 2.0 "p-value = `pvalue4'" 0.29 2.6 "p-value = `pvalue5'" "'
|
| global barvalues = `"0.03 0.1 "`barval1'" 0.03 0.3 "`barval2'" 0.03 0.7 "`barval3'" 0.03 0.9 "`barval4'" 0.03 1.3 "`barval5'" 0.03 1.5 "`barval6'" 0.03 1.9 "`barval7'" 0.03 2.1 "`barval8'" 0.03 2.5 "`barval9'" 0.03 2.7 "`barval9'" "'
|
|
|
|
|
| twoway (bar R1 pos1 if R4 == 1, barw(0.18) fi(inten50) lc(black) lw(medium)) (bar R1 pos2 if R4 == 2, barw(0.18) fi(inten20) lc(black) lw(medium))
|
| (rcap R3 R2 pos1 if R4 == 1, lc(gs5)) (rcap R3 R2 pos2 if R4 == 2, lc(gs5)), legend(${legend}) graphregion(color(white))
|
| yscale(range(0.3)) yla(0(0.05)0.3) xla($barlabels, labsize(2.5)) text($pvalues, size(2.5)) text($barvalues, size(2.5))
|
| ytitle("Fraction of respondents who signed", height(5))
|
| graph export "$output\fig_petitionI_2sided.pdf", replace
|
|
|
|
|
|
|
| clear all
|
| set scheme s2mono
|
|
|
| |
| |
|
|
|
|
|
|
| prtesti 1531 19 1500 35, count
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| prtesti 798 6 766 16, count
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| prtesti 733 13 734 19, count
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| prtesti 447 3 450 2, count
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| prtesti 558 10 557 18, count
|
|
|
|
|
|
|
|
|
| mat R=J(2,5,.)
|
|
|
| local pvalue1 = 0.02
|
|
|
|
|
| mat R[1,1] = 0.01241
|
| mat R[2,1] = 0.02333
|
|
|
|
|
| mat R[1,2] = 0.0069
|
| mat R[2,2] = 0.0157
|
|
|
|
|
| mat R[1,3] = 0.01796
|
| mat R[2,3] = 0.031
|
|
|
| mat R[1,4]=1
|
| mat R[2,4]=2
|
|
|
| mat R[1,5] = 1
|
| mat R[2,5] = 1
|
|
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat1
|
| save `cat1'
|
| restore
|
|
|
|
|
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| local pvalue2 = 0.02
|
|
|
|
|
| mat R[1,1] = 0.007519
|
| mat R[2,1] = 0.02089
|
|
|
|
|
| mat R[1,2] = .0015253
|
| mat R[2,2] = .0107604
|
|
|
|
|
| mat R[1,3] = .0135123
|
| mat R[2,3] = .0310151
|
|
|
| mat R[1,4]=1
|
| mat R[2,4]=2
|
|
|
| mat R[1,5] = 2
|
| mat R[2,5] = 2
|
|
|
|
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat2
|
| save `cat2'
|
| restore
|
|
|
|
|
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| local pvalue3 = 0.29
|
|
|
|
|
| mat R[1,1] = 0.017735
|
| mat R[2,1] = 0.02589
|
|
|
|
|
| mat R[1,2] = 0.0081803
|
| mat R[2,2] = .0143978
|
|
|
|
|
| mat R[1,3] = 0.0272903
|
| mat R[2,3] = .0373733
|
|
|
| mat R[1,4]=1
|
| mat R[2,4]=2
|
|
|
| mat R[1,5] = 3
|
| mat R[2,5] = 3
|
|
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat3
|
| save `cat3'
|
| restore
|
|
|
|
|
|
|
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
|
|
| local pvalue4 = 0.65
|
| local pvalue4 = trim("`: di %9.2f 0.65'")
|
|
|
|
|
| mat R[1,1] = 0.0067
|
| mat R[2,1] = 0.00444
|
|
|
|
|
| mat R[1,2] = -.0008576
|
| mat R[2,2] = -.0017014
|
|
|
|
|
| mat R[1,3] = .0142804
|
| mat R[2,3] = .0105903
|
|
|
| mat R[1,4]=1
|
| mat R[2,4]=2
|
|
|
| mat R[1,5] = 4
|
| mat R[2,5] = 4
|
|
|
|
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat4
|
| save `cat4'
|
| restore
|
|
|
|
|
|
|
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| local pvalue5 = 0.12
|
|
|
|
|
| mat R[1,1] = 0.01792
|
| mat R[2,1] = 0.0323
|
|
|
|
|
| mat R[1,2] = .0069137
|
| mat R[2,2] = .0176302
|
|
|
|
|
| mat R[1,3] = .0289286
|
| mat R[2,3] = .0470017
|
|
|
| mat R[1,4]=1
|
| mat R[2,4]=2
|
|
|
| mat R[1,5] = 5
|
| mat R[2,5] = 5
|
|
|
|
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat5
|
| save `cat5'
|
| restore
|
|
|
|
|
|
|
| clear
|
|
|
| local numcats = "1 2 3 4 5"
|
| foreach a of local numcats {
|
| append using `cat`a''
|
| }
|
|
|
|
|
|
|
| gen s1 = R5
|
| gen s2 = .
|
| replace s2 = s1 - 0.2 if R5 == 1
|
| replace s2 = s1 - 0.6 if R5 == 2
|
| replace s2 = s1 - 1.0 if R5 == 3
|
| replace s2 = s1 - 1.4 if R5 == 4
|
| replace s2 = s1 - 1.8 if R5 == 5
|
| gen pos1 = (s2 - 0.1) - .6
|
| gen pos2 = s2 + 0.1 - .6
|
|
|
|
|
| local i = 0
|
| foreach pos of local numcats {
|
| forval rel = 1/2 {
|
| local ++i
|
| sum R1 if R4 == `rel' & R5 == `pos'
|
| local barval`i' = trim("`: di %9.2f r(mean)'")
|
| }
|
| }
|
|
|
| global barlabels `"0.2 "All" 0.8 "Women" 1.4 "Men" 2.0 "Democrats" 2.6 "Non-Democrats" "'
|
| global pvalues `"0.08 0.2 "p-value = `pvalue1'" 0.08 0.8 "p-value = `pvalue2'" 0.08 1.4 "p-value = `pvalue3'" 0.08 2.0 "p-value = `pvalue4'" 0.08 2.6 "p-value = `pvalue5'" "'
|
| global barvalues = `"0.05 0.1 "`barval1'" 0.05 0.3 "`barval2'" 0.05 0.7 "`barval3'" 0.05 0.9 "`barval4'" 0.05 1.3 "`barval5'" 0.05 1.5 "`barval6'" 0.05 1.9 "`barval7'" 0.05 2.1 "`barval8'" 0.05 2.5 "`barval9'" 0.05 2.7 "`barval10'" "'
|
|
|
|
|
| twoway (bar R1 pos1 if R4 == 1, barw(0.18) fi(inten50) lc(black) lw(medium)) (bar R1 pos2 if R4 == 2, barw(0.18) fi(inten20) lc(black) lw(medium))
|
| (rcap R3 R2 pos1 if R4 == 1, lc(gs5)) (rcap R3 R2 pos2 if R4 == 2, lc(gs5)), legend(${legend}) graphregion(color(white))
|
| yscale(range(0.1)) yla(0(0.05)0.1) xla($barlabels, labsize(2.5)) text($pvalues, size(2.5)) text($barvalues, size(2.5))
|
| ytitle("Fraction of respondents who signed", height(5))
|
| graph export "$output\fig_petitionII_2sided.pdf", replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| clear all
|
|
|
| use "$path\data\SurveyStageI_AB_final.dta", clear
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| forv s=0/1{
|
| matrix R`s' = J(5, 3, .)
|
|
|
| matrix coln R`s' = coef lb95 ub95
|
|
|
| matrix rown R`s' = "18-24" "25-34" "35-44" "45-54" "55-65"
|
| }
|
|
|
|
|
| forv s=0/1{
|
| forv i = 1/5 {
|
| reg z_lmpolicy_index T1 $controls if rand!=0&gender==`s' & age==`i'
|
| matrix reg = e(b)
|
| matrix var = e(V)
|
| matrix list reg
|
| matrix list var
|
| local coef=reg[1,1]
|
| local var1=var[1,1]
|
| local se= sqrt(`var1')
|
| local lb=`coef' - 1.645*`se'
|
| local ub=`coef' + 1.645*`se'
|
| matrix R`s'[`i',1] = `coef'
|
| matrix R`s'[`i',2] = `lb'
|
| matrix R`s'[`i',3] = `ub'
|
| }
|
| }
|
|
|
|
|
|
|
|
|
| forv s=0/1{
|
| matrix M`s' = J(5, 1, .)
|
|
|
| matrix coln M`s' = mean
|
|
|
| matrix rown M`s' = "18-24" "25-34" "35-44" "45-54" "55-65"
|
| }
|
|
|
|
|
| forv s=0/1{
|
| forv i = 1/5 {
|
| mean z_lmpolicy_index if rand==0&gender==`s' & age==`i'
|
| matrix mean = e(b)
|
| matrix list mean
|
| local mean=mean[1,1]
|
| matrix M`s'[`i',1] = `mean'
|
| }
|
| }
|
|
|
|
|
| coefplot (matrix(M0[,1]), weight(25) recast(bar) noci barwidth(0.4) color(ltblue))
|
| (matrix(R0[,1]), ci((2 3)) ciopts(recast(rcap)))
|
| , vertical color(blue) nooffsets legend(off)
|
| xtitle("Age group", size(4)) ytitle("Mean/Treatment effect T{sup:74}", size(4)) title("Male respondents") name(graph190CI)
|
|
|
|
|
| coefplot (matrix(M1[,1]), weight(25) recast(bar) noci barwidth(0.4) color(erose))
|
| (matrix(R1[,1]), ci((2 3)) ciopts(recast(rcap)))
|
| ,vertical color(red) nooffsets legend(off)
|
| xtitle("Age group", size(4)) ytitle("Mean/Treatment effect T{sup:74}", size(4)) title("Female respondents") name(graph290CI)
|
|
|
| graph combine graph190CI graph290CI, xsize(4) ysize(2.5) name(coefplot, replace)
|
|
|
| graph export "$output\T1_mean_bygenderbyage_90CI.pdf", replace
|
|
|
|
|
|
|
|
|
|
|
|
|
| set scheme s2mono
|
| use "$path\data\SurveyStageI_AB_final.dta", clear
|
|
|
| keep if rand==0
|
| keep infopaysupport infopayoppose T1 T2 democrat republican gender pweight
|
|
|
| gen women=(gender==1)
|
| gen men=(gender==0)
|
|
|
| local outcome1 = "infopaysupport"
|
| local outcome2 = "infopayoppose"
|
|
|
|
|
|
|
|
|
|
|
| mat R=J(2,6,.)
|
|
|
|
|
| reg `outcome1' men, robust
|
| local pvalue1 = trim("`: di %9.3f 2*ttail(e(df_r), abs(_b[men]/_se[men]))'")
|
| local row=1
|
| foreach X in women men {
|
| sum `outcome1' if `X' == 1
|
| mat R[`row',1] = r(mean)
|
| mat R[`row',2]=_b[_cons] + _b[men]-1.96*_se[men]
|
| mat R[`row',3]=_b[_cons] + _b[men]+1.96*_se[men]
|
| mat R[`row',4]=`row'
|
| mat R[`row',5] = 1
|
| local ++row
|
| }
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat1
|
| save `cat1'
|
| restore
|
|
|
|
|
| reg `outcome1' republican if democrat==1|republican==1, robust
|
| local pvalue2 = trim("`: di %9.3f 2*ttail(e(df_r), abs(_b[republican]/_se[republican]))'")
|
| local row=1
|
| foreach X in democrat republican {
|
| sum `outcome1' if `X' == 1
|
| mat R[`row',1] = r(mean)
|
| mat R[`row',2]=_b[_cons] + _b[republican]-1.96*_se[republican]
|
| mat R[`row',3]=_b[_cons] + _b[republican]+1.96*_se[republican]
|
| mat R[`row',4]=`row'
|
| mat R[`row',5] = 2
|
| local ++row
|
| }
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat2
|
| save `cat2'
|
| restore
|
|
|
|
|
|
|
|
|
| reg `outcome2' men, robust
|
| local pvalue3 = trim("`: di %9.3f 2*ttail(e(df_r), abs(_b[men]/_se[men]))'")
|
| local row=1
|
| foreach X in women men{
|
| sum `outcome2' if `X' == 1
|
| mat R[`row',1] = r(mean)
|
| mat R[`row',2]=_b[_cons] + _b[men]-1.96*_se[men]
|
| mat R[`row',3]=_b[_cons] + _b[men]+1.96*_se[men]
|
| mat R[`row',4]=`row'
|
| mat R[`row',5] = 3
|
| local ++row
|
| }
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat3
|
| save `cat3'
|
| restore
|
|
|
|
|
|
|
|
|
|
|
| reg `outcome2' republican if democrat==1|republican==1, robust
|
| local pvalue4 = trim("`: di %9.3f 2*ttail(e(df_r), abs(_b[republican]/_se[republican]))'")
|
| local row=1
|
| foreach X in democrat republican {
|
| sum `outcome2' if `X' == 1
|
| mat R[`row',1] = r(mean)
|
| mat R[`row',2]=_b[_cons] + _b[republican]-1.96*_se[republican]
|
| mat R[`row',3]=_b[_cons] + _b[republican]+1.96*_se[republican]
|
| mat R[`row',4]=`row'
|
| mat R[`row',5] = 4
|
| local ++row
|
| }
|
| preserve
|
| clear
|
| svmat R
|
| tempfile cat4
|
| save `cat4'
|
| restore
|
|
|
|
|
|
|
| clear
|
|
|
| local numcats = "1 2 3 4"
|
| foreach a of local numcats {
|
| append using `cat`a''
|
| }
|
|
|
|
|
|
|
| gen s1 = R5
|
| gen s2 = .
|
| replace s2 = s1 - 0.2 if R5 == 1
|
| replace s2 = s1 - 0.6 if R5 == 2
|
| replace s2 = s1 - 1.0 if R5 == 3
|
| replace s2 = s1 - 1.4 if R5 == 4
|
| gen pos1 = (s2 - 0.1) - .6
|
| gen pos2 = s2 + 0.1 - .6
|
|
|
|
|
| local i = 0
|
| foreach cat of local numcats {
|
| forval rel = 1/2 {
|
| local ++i
|
| sum R1 if R4 == `rel' & R5 == `cat'
|
| local barval`i' = trim("`: di %9.2f r(mean)'")
|
| }
|
| }
|
|
|
| global barlabels `"0.2 "Gender" 0.8 "Pol. orientation" 1.4 "Gender" 2.0 "Pol. orientation""'
|
| global pvalues `"1.8 0.2 "p-value = `pvalue1'" 1.8 0.8 "p-value = `pvalue2'" 1.8 1.4 "p-value = `pvalue3'" 1.8 2.0 "p-value = `pvalue4'""'
|
| global grouplabels `"2.0 0.5 "Supportive Information" 2.0 1.7 "Traditional Information""'
|
| global bargroups = `"0.3 0.1 "Women" 0.3 0.3 "Men" 0.3 0.7 "Dem." 0.3 0.9 "Repub." 0.3 1.3 "Women" 0.3 1.5 "Men" 0.3 1.9 "Dem." 0.3 2.1 "Rep.""'
|
| global barvalues = `"0.1 0.1 "`barval1'" 0.1 0.3 "`barval2'" 0.1 0.7 "`barval3'" 0.1 0.9 "`barval4'" 0.1 1.3 "`barval5'" 0.1 1.5 "`barval6'" 0.1 1.9 "`barval7'" 0.1 2.1 "`barval8'""'
|
|
|
|
|
| twoway (bar R1 pos1 if R4 == 1, barw(0.18) fi(inten50) lc(black) lw(medium)) (bar R1 pos2 if R4 == 2, barw(0.18) fi(inten20) lc(black) lw(medium))
|
| (rcap R3 R2 pos2 if R4 == 2, lc(gs5)), legend(off) graphregion(color(white))
|
| yscale(range(2)) yla(0(0.5)2.1) xla($barlabels, labsize(3.5)) text($pvalues, size(3.5)) text($grouplabels, size(4.0)) text($bargroups, size(3.0)) text($barvalues, size(3.5))
|
| ytitle("Willingness to pay for additional info", size(4.5) height(5))
|
| graph export "$output\fig_infopay0.pdf", replace
|
|
|
|
|
|
|
|
|
|
|
| use "$path\data\SurveyStageI_AB_final.dta", clear
|
|
|
| binscatter large prior if rand==0 [aweight=pweight], nquantiles(15) rd(50, 116) xtitle("Prior belief") ytitle("Gender diff. in wages are large")
|
| graph export "$output\large_binscatter_discontinuity.pdf", replace
|
|
|
| binscatter problem prior if rand==0 [aweight=pweight], nquantiles(15) rd(50, 116) xtitle("Prior belief") ytitle("Gender diff. in wages are a problem")
|
| graph export "$output\problem_binscatter_discontinuity.pdf", replace
|
|
|
| binscatter govmore prior if rand==0 [aweight=pweight], nquantiles(15) rd(50, 116) xtitle("Prior belief") ytitle("Gov. should promote gender wage equality")
|
| graph export "$output\govmore_binscatter_discontinuity.pdf", replace
|
|
|
| binscatter quotaanchor prior if rand==0 [aweight=pweight], nquantiles(15) rd(50, 116) xtitle("Prior belief") ytitle("Introduce gender quotas")
|
| graph export "$output\quota_binscatter_discontinuity.pdf", replace
|
|
|
| binscatter AAanchor prior if rand==0 [aweight=pweight], nquantiles(15) rd(50, 116) xtitle("Prior belief") ytitle("Statutory affirmative action")
|
| graph export "$output\AA_binscatter_discontinuity.pdf", replace
|
|
|
| binscatter legislationanchor prior if rand==0 [aweight=pweight], nquantiles(25) rd(50, 116) xtitle("Prior belief") ytitle("Stricter equal pay legislation")
|
| graph export "$output\legis_binscatter_discontinuity.pdf", replace
|
|
|
| binscatter transparencyanchor prior if rand==0 [aweight=pweight], nquantiles(15) rd(50, 116) xtitle("Prior belief") ytitle("Wage transparency within companies")
|
| graph export "$output\transp_binscatter_discontinuity.pdf", replace
|
|
|
| binscatter UKtool prior if rand==0 [aweight=pweight], nquantiles(15) rd(50, 116) xtitle("Prior belief") ytitle("Introduce reporting website")
|
| graph export "$output\UKtool_binscatter_discontinuity.pdf", replace
|
|
|
| binscatter childcare prior if rand==0 [aweight=pweight], nquantiles(15) rd(50, 116) xtitle("Prior belief") ytitle("Increase subsidies to child care")
|
| graph export "$output\childcare_binscatter_discontinuity.pdf", replace
|
|
|