|
|
|
|
|
|
|
|
|
|
|
|
|
|
clear
|
|
|
set more off
|
|
|
|
|
|
|
|
|
cd "$main/Output"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use "$main/Data/cleaned_commitment_study_data", clear
|
|
|
|
|
|
|
|
|
|
|
|
gen id = _n
|
|
|
|
|
|
|
|
|
gen first_info = type_of_info=="1-onlygraph"
|
|
|
gen new_info = type_of_info=="2-graphplus"
|
|
|
gen control_info = (new_info == 0 & first_info == 0)
|
|
|
|
|
|
|
|
|
gen wave1 = (wave == "fall")
|
|
|
gen wave2 = (wave == "winter")
|
|
|
gen wave3 = (wave == "spring")
|
|
|
|
|
|
|
|
|
gen anticommit8 = q170 ==2 if q170<.
|
|
|
gen commit8 = q169 ==2 if q169<.
|
|
|
gen anticommit12 = chose_anticommit11
|
|
|
gen commit12 = chose_commit12
|
|
|
gen anticommit16 = q296==2 if q296<.
|
|
|
gen commit16 = q295 ==2 if q295<.
|
|
|
|
|
|
|
|
|
foreach var of varlist percent*{
|
|
|
replace `var' = `var'/100
|
|
|
}
|
|
|
|
|
|
|
|
|
keep if flag_low_wtp == 0 & flag_exclude_exog == 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gen ft_student = student==1 if student<.
|
|
|
gen ft_working = working==1 if working<.
|
|
|
gen fpt_working = working<3 if working<.
|
|
|
gen advanced_degree = educ==5
|
|
|
replace married = married==1 if married<.
|
|
|
recode age (1 = 24) (2=35.5 ) (3=45.5) (4=57.5) (5=70) , gen(imp_age)
|
|
|
recode income_cat (1 = 18000) (2=37500 ) (3=75500) (4=150000) (5=.) , gen(imp_inc)
|
|
|
|
|
|
label var female "Female"
|
|
|
label var imp_inc "Household income$^a$"
|
|
|
label var married "Married"
|
|
|
label var ft_student "Student, full-time"
|
|
|
label var fpt_working "Working, full- or part-time"
|
|
|
label var advanced "Advanced degree$^b$"
|
|
|
label var imp_age "Age$^a$"
|
|
|
label var past4 "Visits in the past 4 weeks, recorded"
|
|
|
label var visits_100 "Visits, recorded"
|
|
|
label var past100days_went "Visits, self-recollection"
|
|
|
label var past100days_should "Days that \textit{I should have gone, but didn't}"
|
|
|
label var days_0 "Best guess of days I will attend in next 4 weeks"
|
|
|
label var goal "Goal for visits"
|
|
|
label var flag_confusion "Indicator for inattention during survey"
|
|
|
|
|
|
gen any_info = 0
|
|
|
replace any_info=1 if first_info==1 | new_info==1
|
|
|
gen rowvar = .
|
|
|
|
|
|
|
|
|
local counter=0
|
|
|
eststo clear
|
|
|
foreach var of varlist female imp_age ft_student fpt_working married advanced_degree imp_inc past4{
|
|
|
local counter=`counter'+1
|
|
|
local varlabel: var label `var'
|
|
|
label var rowvar "`varlabel'"
|
|
|
replace rowvar=1
|
|
|
|
|
|
eststo model0, title(""): xi: reg `var' rowvar, noconst
|
|
|
replace rowvar = any_info
|
|
|
|
|
|
|
|
|
eststo model1, title(""): xi: reg `var' rowvar if wave1==1, robust
|
|
|
|
|
|
reg `var' rowvar if wave1==0, robust
|
|
|
eststo model2, title("")
|
|
|
|
|
|
|
|
|
if `counter'==1 {
|
|
|
estout model0 model1 model2 using "table_descriptive.tex", style(tex) label cells((b( fmt(%9.3f) label("\shortstack{Wave 1 \\ (2)}") pattern(0 1 0)) b( fmt(%9.3f) label("\shortstack{Waves 2-3 \\ (4)}") pattern(0 0 1)) b( fmt(%9.3f) label("\shortstack{Waves 1-3 \\ (1)}") pattern(1 0 0)) p(fmt(%9.2f) pattern(0 1 0) label("\shortstack{P-value \\ (3)}")) p(fmt(%9.2f) pattern(0 0 1) label("\shortstack{P-value \\ (5)}")))) drop(_cons ) margin replace
|
|
|
title(Descriptive Statistics) mgroups("\shortstack{ \\ Overall mean}" "\shortstack{ \\ Difference in means:\\ Treatment $-$ control}" , pattern(1 1 0)
|
|
|
span prefix(\multicolumn{@span}{c}{) suffix(}))
|
|
|
mlabels("" "" "") msign(--) starlevels(* 0.1 ** 0.05 *** 0.01)
|
|
|
prehead( "\begin{tabular}{l*{6}{c}}" "\hline" "\addlinespace")
|
|
|
posthead("\hline" "\addlinespace") substitute(_ \_)
|
|
|
}
|
|
|
|
|
|
else if `counter'==7 {
|
|
|
estout model0 model1 model2 using "table_descriptive.tex", style(tex) mlabels("" "" "") label cells((b( fmt(%9.0fc)) p(fmt(%9.2f) pattern(0 1 1)))) drop(_cons) margin append eqlabels(none)
|
|
|
msign(--) starlevels(* 0.1 ** 0.05 *** 0.01) collabels(,none) prefoot() substitute(_ \_)
|
|
|
}
|
|
|
|
|
|
else if `counter'==8 {
|
|
|
estout model0 model1 model2 using "table_descriptive.tex", style(tex) mlabels("" "" "") label cells((b( fmt(%9.2f)) p(pattern(0 1 1)))) drop(_cons) margin append eqlabels(none)
|
|
|
msign(--) starlevels(* 0.1 ** 0.05 *** 0.01) collabels(,none) prefoot() substitute(_ \_)
|
|
|
postfoot("\hline" "\addlinespace" "N & 1,248 & \multicolumn{2}{c}{\shortstack{166 control \\ 174 treated}} & \multicolumn{2}{c}{\shortstack{456 control \\ 452 treated}} \\ " "\hline\hline" "\end{tabular}")
|
|
|
}
|
|
|
else if `counter'>=3 & `counter'<=6{
|
|
|
estout model0 model1 model2 using "table_descriptive.tex", style(tex) mlabels("" "" "") label cells((b( fmt(%9.3f)) p(fmt(%9.2f) pattern(0 1 1)))) drop(_cons) margin append eqlabels(none)
|
|
|
msign(--) starlevels(* 0.1 ** 0.05 *** 0.01) collabels(,none) substitute(_ \_)
|
|
|
}
|
|
|
else {
|
|
|
estout model0 model1 model2 using "table_descriptive.tex", style(tex) mlabels("" "" "") label cells((b( fmt(%9.2f)) p(pattern(0 1 1)))) drop(_cons) margin append eqlabels(none)
|
|
|
msign(--) starlevels(* 0.1 ** 0.05 *** 0.01) collabels(,none) substitute(_ \_)
|
|
|
}
|
|
|
}
|
|
|
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gen delta1=(wtp1) - (days_1+days_0)/2
|
|
|
gen delta2 = (wtp2-wtp1) - (days_2+days_1)/2
|
|
|
gen delta3=(wtp3-wtp2) - (days_3+days_2)/2
|
|
|
gen delta5=(wtp5-wtp3)/(5-3) - (days_5+days_3)/2
|
|
|
gen delta7=(wtp7-wtp5)/(7-5) - (days_7+days_5)/2
|
|
|
gen delta12=(wtp12-wtp7)/(12-7) - (days_12+days_7)/2
|
|
|
gen avg_delta_ex1 = (delta2 + delta3 + delta5 + delta7 + delta12)/5
|
|
|
|
|
|
|
|
|
gen diffa1=(days_1-days_0)
|
|
|
gen diffa2=(days_2-days_1)
|
|
|
gen diffa3=(days_3-days_2)
|
|
|
gen diffa5=(days_5-days_3)/2
|
|
|
gen diffa7=(days_7-days_5)/2
|
|
|
gen diffa12=(days_12-days_7)/5
|
|
|
|
|
|
|
|
|
quietly sum avg_delta_ex1
|
|
|
gen z_avg_delta_ex1 = (avg_delta_ex1 - r(mean))/r(sd)
|
|
|
loc mean : di %4.2f r(mean)
|
|
|
loc sd : di %4.2f r(sd)
|
|
|
latex_write wtpbcmean `mean' numbers
|
|
|
latex_write wtpbcsd `sd' numbers
|
|
|
|
|
|
|
|
|
loc k = 1
|
|
|
foreach restriction in "" "if new_info == 1" "if control_info == 1"{
|
|
|
|
|
|
forval j = 8(4)16{
|
|
|
|
|
|
|
|
|
regress commit`j' z_avg_delta_ex1 wave2 wave3 `restriction',
|
|
|
vce(cluster id)
|
|
|
est store est_cd_`k'
|
|
|
loc ++k
|
|
|
|
|
|
|
|
|
ci means commit`j' if e(sample)
|
|
|
local m : di %4.2f r(mean)
|
|
|
local se : di %4.2f r(se)
|
|
|
estadd local dvmean `m'
|
|
|
estadd local dvse "(`se')"
|
|
|
estadd local wavefe "Yes"
|
|
|
estadd local ccfe "No"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
preserve
|
|
|
|
|
|
|
|
|
reshape long commit commitnotanti, i(id) j(t)
|
|
|
foreach restriction in "" "if new_info == 1" "if control_info == 1"{
|
|
|
|
|
|
|
|
|
regress commit z_avg_delta_ex1 i.t wave2 wave3 `restriction',
|
|
|
vce(cluster id)
|
|
|
est store est_cd_`k'
|
|
|
loc ++k
|
|
|
|
|
|
|
|
|
ci means commit if e(sample)
|
|
|
local m : di %4.2f r(mean)
|
|
|
local se : di %4.2f r(se)
|
|
|
estadd local dvmean `m'
|
|
|
estadd local dvse "(`se')"
|
|
|
estadd local wavefe "Yes"
|
|
|
estadd local ccfe "Yes"
|
|
|
|
|
|
}
|
|
|
|
|
|
restore
|
|
|
|
|
|
|
|
|
estout est_cd_1 est_cd_2 est_cd_3 est_cd_10 using "commit_delta.tex", style(tex) margin replace eqlabels(none)
|
|
|
order(z_avg_delta_ex1) keep(z_avg_delta_ex1) wrap varwidth(25)
|
|
|
mgroups("\shortstack{Take-up of \`\`more'' visits contract}" , pattern(1 0 0 0) span prefix(\multicolumn{@span}{c}{) suffix(}))
|
|
|
mlabels("\shortstack{8+ visits \\ (1)}" "\shortstack{12+ visits \\ (2)}" "\shortstack{16+ visits \\ (3)}" "\shortstack{Pooled \\ (4)}",span prefix(\multicolumn{@span}{c}{) suffix(}))
|
|
|
varlabels(z_avg_delta_ex1 "Behavior change premium (z-score)")
|
|
|
cells(b(star fmt(%9.3f)) se(par fmt(%9.3f))) msign(--) starlevels(* 0.1 ** 0.05 *** 0.01) stardetach
|
|
|
stats(dvmean dvse wavefe ccfe N N_clust, l("Dep. var. mean:" " " "\hline Wave FEs" "Contract FEs" "N" "Clusters") fmt(%8.0fc %8.0fc %8.0fc %8.0fc %8.0fc))
|
|
|
collabels(,none) prehead( "\begin{tabular}{l*{@M}{r @{} l}}" "\hline")
|
|
|
posthead("\hline") prefoot("\hline") postfoot("\hline\hline" "\end{tabular}")
|
|
|
|
|
|
estout est_cd_4 est_cd_5 est_cd_6 est_cd_11 using "commit_delta_info.tex", style(tex) margin replace eqlabels(none)
|
|
|
order(z_avg_delta_ex1) keep(z_avg_delta_ex1) wrap varwidth(25)
|
|
|
mgroups("\shortstack{Take-up of \`\`more'' visits contract}" , pattern(1 0 0 0) span prefix(\multicolumn{@span}{c}{) suffix(}))
|
|
|
mlabels("\shortstack{8+ visits \\ (1)}" "\shortstack{12+ visits \\ (2)}" "\shortstack{16+ visits \\ (3)}" "\shortstack{Pooled \\ (4)}",span prefix(\multicolumn{@span}{c}{) suffix(}))
|
|
|
varlabels(z_avg_delta_ex1 "Behavior change premium (z-score)")
|
|
|
cells(b(star fmt(%9.3f)) se(par fmt(%9.3f))) msign(--) starlevels(* 0.1 ** 0.05 *** 0.01) stardetach
|
|
|
stats(dvmean dvse wavefe ccfe N N_clust, l("Dep. var. mean:" " " "\hline Wave FEs" "Contract FEs" "N" "Clusters") fmt(%8.0fc %8.0fc %8.0fc %8.0fc %8.0fc))
|
|
|
collabels(,none) prehead( "\begin{tabular}{l*{@M}{r @{} l}}" "\hline")
|
|
|
posthead("\hline") prefoot("\hline") postfoot("\hline\hline" "\end{tabular}")
|
|
|
|
|
|
estout est_cd_7 est_cd_8 est_cd_9 est_cd_12 using "commit_delta_control.tex", style(tex) margin replace eqlabels(none)
|
|
|
order(z_avg_delta_ex1) keep(z_avg_delta_ex1) wrap varwidth(25)
|
|
|
mgroups("\shortstack{Take-up of \`\`more'' visits contract}" , pattern(1 0 0 0) span prefix(\multicolumn{@span}{c}{) suffix(}))
|
|
|
mlabels("\shortstack{8+ visits \\ (1)}" "\shortstack{12+ visits \\ (2)}" "\shortstack{16+ visits \\ (3)}" "\shortstack{Pooled \\ (4)}",span prefix(\multicolumn{@span}{c}{) suffix(}))
|
|
|
varlabels(z_avg_delta_ex1 "Behavior change premium (z-score)")
|
|
|
cells(b(star fmt(%9.3f)) se(par fmt(%9.3f))) msign(--) starlevels(* 0.1 ** 0.05 *** 0.01) stardetach
|
|
|
stats(dvmean dvse wavefe ccfe N N_clust, l("Dep. var. mean:" " " "\hline Wave FEs" "Contract FEs" "N" "Clusters") fmt(%8.0fc %8.0fc %8.0fc %8.0fc %8.0fc))
|
|
|
collabels(,none) prehead( "\begin{tabular}{l*{@M}{r @{} l}}" "\hline")
|
|
|
posthead("\hline") prefoot("\hline") postfoot("\hline\hline" "\end{tabular}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gen days_exp = .
|
|
|
foreach i in 0 1 2 3 5 7{
|
|
|
replace days_exp = days_`i' if incentive == `i'
|
|
|
}
|
|
|
|
|
|
|
|
|
gen gap_goal_exp = goal - days_0
|
|
|
gen gap_goal_past = goal - past4
|
|
|
gen gap_actual_exp = visits - days_exp
|
|
|
|
|
|
|
|
|
loc restrict "!missing(incentive)"
|
|
|
|
|
|
|
|
|
drop z_avg_delta_ex1
|
|
|
foreach dvar in gap_goal_exp gap_actual_exp avg_delta_ex1{
|
|
|
sum `dvar' if `restrict'
|
|
|
gen z_`dvar' = (`dvar' - r(mean)) / r(sd) if `restrict'
|
|
|
}
|
|
|
|
|
|
|
|
|
forval i = 8(4)16{
|
|
|
gen commitnotanti`i' = (commit`i' == 1 & anticommit`i' == 0)
|
|
|
if !missing(commit`i')
|
|
|
}
|
|
|
|
|
|
|
|
|
preserve
|
|
|
|
|
|
|
|
|
reshape long commitnotanti, i(id) j(t)
|
|
|
|
|
|
|
|
|
eststo clear
|
|
|
loc k = 1
|
|
|
foreach covar in "first_info new_info" "z_avg_delta_ex1 first_info new_info" "z_gap_goal_exp first_info new_info" "z_gap_actual_exp first_info new_info"{
|
|
|
reg commitnotanti i.t wave2 wave3 `covar' if `restrict', vce(cluster id)
|
|
|
eststo spec_`k'
|
|
|
|
|
|
|
|
|
ci means commitnotanti if `restrict'
|
|
|
local m : di %4.2f r(mean)
|
|
|
local mpct : di %4.0f r(mean)*100
|
|
|
local se : di %4.2f r(se)
|
|
|
estadd local dvmean `m'
|
|
|
estadd local dvse "(`se')"
|
|
|
ci means commitnotanti if `restrict' & control_info == 1
|
|
|
local mcontrol : di %4.2f r(mean)
|
|
|
local secontrol : di %4.2f r(se)
|
|
|
estadd local dvmeancontrol `mcontrol'
|
|
|
estadd local dvsecontrol "(`secontrol')"
|
|
|
estadd local wavefe "Yes"
|
|
|
estadd local ccfe "Yes"
|
|
|
|
|
|
loc ++k
|
|
|
}
|
|
|
|
|
|
|
|
|
estout spec* using "regs_commitnotanti_pooled.tex", style(tex) margin replace eqlabels(none)
|
|
|
drop(8.t 12.t 16.t wave2 wave3 _cons) wrap varwidth(25)
|
|
|
order(first_info new_info z_avg_delta_ex1 z_gap_goal_exp z_gap_actual_exp )
|
|
|
mgroups("\shortstack{Take-up of \`\`more'' but not \`\`fewer'' \\ visits contracts}", pattern(1 0 0 0) span prefix(\multicolumn{@span}{c}{) suffix(}))
|
|
|
mlabels("(1)" "(2)" "(3)" "(4)",span prefix(\multicolumn{@span}{c}{) suffix(}))
|
|
|
varlabels(z_avg_delta_ex1 "Behavior change premium (z-score)" z_gap_goal_exp "Goal $-$ exp. attend. (z-score)" z_gap_actual_exp "Actual $-$ exp. attend. (z-score)" first_info "Basic info. treatment" new_info "Enhanced info. treatment" _cons "Constant")
|
|
|
cells(b(star fmt(%9.3f)) se(par fmt(%9.3f))) msign(--) starlevels(* 0.1 ** 0.05 *** 0.01) stardetach
|
|
|
stats(dvmean dvse dvmeancontrol dvsecontrol wavefe ccfe N N_clust, l("Dep. var. mean:" " " "Dep. var. mean," "info. control group:" "\hline Wave FEs" "Contract FEs" "N" "Clusters") fmt(%8.0fc %8.0fc %8.0fc %8.0fc %8.0fc))
|
|
|
collabels(,none) prehead( "\begin{tabular}{l*{@M}{r @{} l}}" "\hline")
|
|
|
posthead("\hline") prefoot("\hline") postfoot("\hline\hline" "\end{tabular}")
|
|
|
|
|
|
restore
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach restriction in "new_info==1" "control_info==1"{
|
|
|
preserve
|
|
|
|
|
|
keep if `restriction'
|
|
|
|
|
|
if "`restriction'" == "new_info==1" loc name "enhancedtreat"
|
|
|
else loc name "control"
|
|
|
|
|
|
|
|
|
forval X = 8(4)16 {
|
|
|
|
|
|
summarize commit`X'
|
|
|
|
|
|
if `X' == 12 latex_write `name'obs `r(N)' numbers
|
|
|
|
|
|
summarize anticommit`X'
|
|
|
|
|
|
summarize commit`X' if anticommit`X'==1
|
|
|
|
|
|
summarize anticommit`X' if commit`X'==1
|
|
|
|
|
|
gen commit`X'_cdtn = commit`X' if anticommit`X'==1
|
|
|
ttest commit`X'_cdtn = commit`X', unpaired
|
|
|
|
|
|
gen anticommit`X'_cdtn = anticommit`X' if commit`X'==1
|
|
|
ttest anticommit`X'_cdtn = anticommit`X', unpaired
|
|
|
}
|
|
|
restore
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reg percent_meet_commit12 commit12, robust
|
|
|
est store est21
|
|
|
|
|
|
reg percent_meet_commit12 anticommit12, robust
|
|
|
est store est22
|
|
|
|
|
|
reg percent_meet_commit12 commit12 anticommit12, robust
|
|
|
est store est23
|
|
|
|
|
|
|
|
|
test _b[commit]=_b[anticommit]
|
|
|
nlcom diff: _b[commit]-_b[anticommit], post
|
|
|
|
|
|
|
|
|
local b : di %4.2f _b[diff]
|
|
|
local se : di %4.2f _se[diff]
|
|
|
estadd local diffb "`b'***" : est23
|
|
|
estadd local diffse "(`se')" : est23
|
|
|
|
|
|
|
|
|
reg percent_meet_anticommit commit12, robust
|
|
|
est store est24
|
|
|
|
|
|
reg percent_meet_anticommit anticommit12, robust
|
|
|
est store est25
|
|
|
|
|
|
reg percent_meet_anticommit commit12 anticommit12, robust
|
|
|
est store est26
|
|
|
|
|
|
|
|
|
test _b[commit]=_b[anticommit]
|
|
|
nlcom diff: _b[commit]-_b[anticommit], post
|
|
|
|
|
|
|
|
|
local b : di %4.2f _b[diff]
|
|
|
local se : di %4.2f _se[diff]
|
|
|
estadd local diffb "`b'***" : est26
|
|
|
estadd local diffse "(`se')" : est26
|
|
|
|
|
|
|
|
|
estout est21 est22 est23 est24 est25 est26 using CCtakeupVbeliefs.tex,
|
|
|
style(tex) margin replace eqlabels(none)
|
|
|
cells(b(star fmt(%9.2f)) se(par fmt(%9.2f)) ) msign(--) starlevels(* 0.1 ** 0.05 *** 0.01) stardetach
|
|
|
keep(commit12 anticommit12) order(commit12 anticommit12)
|
|
|
stats(N diffb diffse, l("N" "\hline \`\`More'' $-$ \`\`Fewer''" " ") fmt(%8.0fc %8.0fc %8.0fc))
|
|
|
varlabels(commit12 "Commit to \`\`more''" anticommit12 "Commit to \`\`fewer''")
|
|
|
collabels(,none) mlabels("(1)" "(2)" "(3)" "(4)" "(5)" "(6)",span prefix(\multicolumn{@span}{c}{) suffix(}))
|
|
|
mgroups("\shortstack{Subj. prob. succeed in \\ \`\`more'' contract}" "\shortstack{Subj. prob. succeed in \\ \`\`fewer'' contract}", pattern(1 0 0 1 0 0)
|
|
|
span prefix(\multicolumn{@span}{c}{) suffix(}))
|
|
|
prehead( "\begin{tabular}{l*{@M}{r @{} l}}" "\hline")
|
|
|
posthead("\hline") prefoot() postfoot("\hline\hline" "\end{tabular}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
preserve
|
|
|
|
|
|
reshape long commit anticommit, i(id) j(threshold)
|
|
|
|
|
|
|
|
|
|
|
|
reg days_0 commit anticommit, robust
|
|
|
est store est31
|
|
|
|
|
|
|
|
|
nlcom diff: _b[commit]-_b[anticommit], post
|
|
|
|
|
|
|
|
|
local b : di %4.2f _b[diff]
|
|
|
local se : di %4.2f _se[diff]
|
|
|
estadd local diffb "`b'***" : est31
|
|
|
estadd local diffse "(`se')" : est31
|
|
|
|
|
|
|
|
|
|
|
|
reg past4 commit anticommit, robust
|
|
|
est store est32
|
|
|
|
|
|
|
|
|
nlcom diff: _b[commit]-_b[anticommit], post
|
|
|
|
|
|
|
|
|
local b : di %4.2f _b[diff]
|
|
|
local se : di %4.2f _se[diff]
|
|
|
estadd local diffb "`b'***" : est32
|
|
|
estadd local diffse "(`se')" : est32
|
|
|
|
|
|
|
|
|
|
|
|
reg goal commit anticommit, robust
|
|
|
est store est33
|
|
|
|
|
|
|
|
|
nlcom diff: _b[commit]-_b[anticommit], post
|
|
|
|
|
|
|
|
|
local b : di %4.2f _b[diff]
|
|
|
local se : di %4.2f _se[diff]
|
|
|
estadd local diffb "`b'***" : est33
|
|
|
estadd local diffse "(`se')" : est33
|
|
|
|
|
|
|
|
|
|
|
|
estout est31 est32 est33 using CCcorrelates.tex, style(tex) margin replace eqlabels(none)
|
|
|
cells(b(star fmt(%9.2f)) se(par fmt(%9.2f)) ) msign(--) starlevels(* 0.1 ** 0.05 *** 0.01) stardetach
|
|
|
keep(commit anticommit) order(commit anticommit)
|
|
|
mgroups("Expected attendance" "Past attendance" "Goal attendance", pattern(1 1 1)
|
|
|
span prefix(\multicolumn{@span}{c}{) suffix(}))
|
|
|
stats(N diffb diffse, l("N" "\hline \`\`More'' $-$ \`\`Fewer''" " ") fmt(%8.0fc %8.0fc %8.0fc))
|
|
|
varlabels(commit "Chose \`\`more contract''" anticommit "Chose \`\`fewer'' contract")
|
|
|
collabels(,none) mlabels("(1)" "(2)" "(3)")
|
|
|
prehead( "\begin{tabular}{l*{@M}{r @{} l}}" "\hline")
|
|
|
posthead("\hline") prefoot() postfoot("\hline\hline" "\end{tabular}")
|
|
|
|
|
|
restore
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cap program drop rate_table corr_table
|
|
|
|
|
|
program rate_table
|
|
|
syntax, attendance(string)
|
|
|
|
|
|
if "`attendance'" == "expected" local attendance "days_0"
|
|
|
else if "`attendance'" == "actual" local attendance "incentive == 0 & visits"
|
|
|
else confirm "`attendance'" == "actual" | "`attendance'" == "expected"
|
|
|
|
|
|
|
|
|
forval i = 8(4)16 {
|
|
|
|
|
|
di("(1) Chose more: `i' visits")
|
|
|
summarize commit`i'
|
|
|
|
|
|
di("(2) Chose more | att. <= `i' - 2, `i' visits")
|
|
|
summarize commit`i' if `attendance' <= `i' - 2
|
|
|
|
|
|
di("(3) Chose more | att. <= `i' - 4, `i' visits")
|
|
|
summarize commit`i' if `attendance' <= `i' - 4
|
|
|
|
|
|
di("(4) Chose fewer, `i' visits")
|
|
|
summarize anticommit`i'
|
|
|
|
|
|
di("(5) Chose fewer | att. >= `i' + 1, `i' visits")
|
|
|
summarize anticommit`i' if `attendance' >= `i' + 1
|
|
|
|
|
|
di("(6) Chose fewer | att. >= `i' + 3, `i' visits")
|
|
|
summarize anticommit`i' if `attendance' >= `i' + 3
|
|
|
}
|
|
|
end
|
|
|
|
|
|
|
|
|
rate_table, attendance(expected)
|
|
|
|
|
|
|
|
|
program corr_table
|
|
|
syntax, attendance(string)
|
|
|
|
|
|
if "`attendance'" == "expected" local attendance "days_0"
|
|
|
else if "`attendance'" == "actual" local attendance "incentive == 0 & visits"
|
|
|
|
|
|
|
|
|
forval i = 8(4)16 {
|
|
|
|
|
|
di("(1) `i' visits")
|
|
|
pwcorr commit`i' anticommit`i', sig
|
|
|
|
|
|
di("(2) att. <= `i' - 2, `i' visits")
|
|
|
pwcorr commit`i' anticommit`i' if `attendance' <= `i' - 2, sig
|
|
|
|
|
|
di("(3) att. <= `i' - 4, `i' visits")
|
|
|
pwcorr commit`i' anticommit`i' if `attendance' <= `i' - 4, sig
|
|
|
|
|
|
di("(4) att. >= `i' + 1, `i' visits")
|
|
|
pwcorr commit`i' anticommit`i' if `attendance' >= `i' + 1, sig
|
|
|
|
|
|
di("(5) att. >= `i' + 3,`i' visits")
|
|
|
pwcorr commit`i' anticommit`i' if `attendance' >= `i' + 3, sig
|
|
|
|
|
|
di("(6) att. <= 6, `i' visits")
|
|
|
pwcorr commit`i' anticommit`i' if `attendance' <= 6, sig
|
|
|
|
|
|
di("(7) att. >= 17, `i' visits")
|
|
|
pwcorr commit`i' anticommit`i' if `attendance' >= 17, sig
|
|
|
}
|
|
|
end
|
|
|
|
|
|
|
|
|
corr_table, attendance(expected)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
preserve
|
|
|
|
|
|
reshape long delta diffa, i(id) j(index)
|
|
|
|
|
|
|
|
|
|
|
|
reg delta diffa if index > 1, cluster(id)
|
|
|
est store bcpbc1
|
|
|
|
|
|
|
|
|
estadd local wavefe "No"
|
|
|
ci means delta if e(sample)
|
|
|
local m : di %4.2f r(mean)
|
|
|
loc se : di %4.2f r(se)
|
|
|
estadd local dvmean `m'
|
|
|
estadd local dvse "(`se')"
|
|
|
|
|
|
|
|
|
reg delta diffa wave? if index > 1, cluster(id) nocons
|
|
|
est store bcpbc2
|
|
|
|
|
|
|
|
|
estadd local wavefe "Yes"
|
|
|
ci means delta if e(sample)
|
|
|
local m : di %4.2f r(mean)
|
|
|
loc se : di %4.2f r(se)
|
|
|
estadd local dvmean `m'
|
|
|
estadd local dvse "(`se')"
|
|
|
|
|
|
|
|
|
estout bcpbc* using "bcp_on_behavior_change.tex",
|
|
|
style(tex) margin replace eqlabels(none) drop(wave*)
|
|
|
mgroups("\shortstack{Behavior change \\ premium}", pattern(1) span prefix(\multicolumn{@span}{c}{) suffix(}))
|
|
|
mlabels("(1)" "(2)", span prefix(\multicolumn{@span}{c}{) suffix(}))
|
|
|
varlabels(diffa "Expected behavior change" _cons "Constant")
|
|
|
cells(b(star fmt(%9.2f)) se(par fmt(%9.2f))) msign(--) starlevels(* 0.1 ** 0.05 *** 0.01) stardetach
|
|
|
stats(dvmean dvse wavefe N N_clust, l("Dep. var. mean:" " " "\hline Wave FEs" "N" "Clusters") fmt(%8.0fc %8.0fc %8.0fc))
|
|
|
collabels(,none) prehead( "\begin{tabular}{l*{@M}{r @{} l}}" "\hline")
|
|
|
posthead("\hline") prefoot("\hline") postfoot("\hline\hline" "\end{tabular}")
|
|
|
|
|
|
restore
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gen risk_averse = risk_aversion <= 5
|
|
|
|
|
|
|
|
|
sum risk_aversion, d
|
|
|
gen abovemed_risk_aversion = risk_aversion <= r(p50)
|
|
|
|
|
|
|
|
|
eststo clear
|
|
|
loc k = 1
|
|
|
foreach covar in "risk_aversion" "abovemed_risk_aversion" "risk_averse" {
|
|
|
|
|
|
reg avg_delta_ex1 `covar' wave2 wave3, r
|
|
|
eststo spec_`k'
|
|
|
loc ++k
|
|
|
|
|
|
|
|
|
estadd local wavefe "Yes"
|
|
|
ci means avg_delta_ex1 if e(sample)
|
|
|
local m : di %4.2f r(mean)
|
|
|
loc se : di %4.2f r(se)
|
|
|
estadd local dvmean `m'
|
|
|
estadd local dvse "(`se')"
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
estout spec* using "bcp_on_risk_aversion.tex",
|
|
|
style(tex) margin replace eqlabels(none) drop(wave* _cons)
|
|
|
mgroups("\shortstack{Behavior change premium}", pattern(1 0 0) span prefix(\multicolumn{@span}{c}{) suffix(}))
|
|
|
mlabels("(1)" "(2)" "(3)", span prefix(\multicolumn{@span}{c}{) suffix(}))
|
|
|
varlabels(risk_aversion "Risk aversion" abovemed_risk_aversion "Above median risk aversion" risk_averse "Risk averse")
|
|
|
cells(b(star fmt(%9.3f)) se(par fmt(%9.3f))) msign(--) starlevels(* 0.1 ** 0.05 *** 0.01) stardetach
|
|
|
stats(dvmean dvse wavefe N, l("Dep. var. mean:" " " "\hline Wave FEs" "N") fmt(%8.0fc %8.0fc %8.0fc %8.0fc))
|
|
|
collabels(,none) prehead( "\begin{tabular}{l*{@M}{r @{} l}}" "\hline")
|
|
|
posthead("\hline") prefoot("\hline") postfoot("\hline\hline" "\end{tabular}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use "$main/Data/cleaned_commitment_study_daily_data", clear
|
|
|
|
|
|
|
|
|
|
|
|
gen first_info = type_of_info=="1-onlygraph"
|
|
|
gen new_info = type_of_info=="2-graphplus"
|
|
|
gen control_info = (new_info == 0 & first_info == 0)
|
|
|
|
|
|
|
|
|
gen wave1 = (wave == "fall")
|
|
|
gen wave2 = (wave == "winter")
|
|
|
gen wave3 = (wave == "spring")
|
|
|
|
|
|
|
|
|
gen anticommit8 = q170 ==2 if q170<.
|
|
|
gen commit8 = q169 ==2 if q169<.
|
|
|
gen anticommit12 = chose_anticommit11
|
|
|
gen commit12 = chose_commit12
|
|
|
gen anticommit16 = q296==2 if q296<.
|
|
|
gen commit16 = q295 ==2 if q295<.
|
|
|
|
|
|
|
|
|
keep if flag_low_wtp == 0 & flag_exclude_exog == 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
preserve
|
|
|
keep if commit12 == 1
|
|
|
gen got_incentive = 1 if treatment == "threshold80_12"
|
|
|
replace got_incentive = 0 if treatment == "control"
|
|
|
tab got_incentive
|
|
|
keep if !missing(got_incentive)
|
|
|
gen incentive_day = day*got_incentive
|
|
|
|
|
|
|
|
|
reg attended day got_incentive incentive_day wave2 wave3, clus(id)
|
|
|
est store estday
|
|
|
estadd local wavefe "Yes"
|
|
|
restore
|
|
|
|
|
|
|
|
|
estout estday using "DailyAttIncr.tex", style(tex) margin replace eqlabels(none)
|
|
|
order(day got_incentive incentive_day _cons)
|
|
|
drop(wave2 wave3 _cons)
|
|
|
mgroups("\shortstack{Attendance \\ likelihood}", pattern(1) span prefix(\multicolumn{@span}{c}{) suffix(}))
|
|
|
mlabels("(1)",span prefix(\multicolumn{@span}{c}{) suffix(}))
|
|
|
varlabels(day "Day" got_incentive "12+ visits contract" incentive_day "Day $\times$ 12+ visits contract")
|
|
|
cells(b(star fmt(%9.3f)) se(par fmt(%9.3f))) msign(--) starlevels(* 0.1 ** 0.05 *** 0.01) stardetach
|
|
|
stats(wavefe N N_clust, l("Wave FEs" "N" "Clusters") fmt(%8.0fc %8.0fc))
|
|
|
collabels(,none)
|
|
|
prehead( "\begin{tabular}{l*{@M}{r @{} l}}" "\hline")
|
|
|
posthead("\hline")
|
|
|
prefoot("\hline")
|
|
|
postfoot("\hline\hline" "\end{tabular}")
|
|
|
|