|
|
clear all |
|
|
|
|
|
|
|
|
if 1 { |
|
|
|
|
|
use "data/dataExpB.dta" |
|
|
|
|
|
gen fl_high = fl_score_compound == 1 |
|
|
|
|
|
gen discount_unframed = v_unframed/amount * 100 |
|
|
gen discount_framed = v_framed/amount_precise * 100 |
|
|
gen discount_framed_72 = v_framed/amount * 100 |
|
|
|
|
|
sort id delay |
|
|
by id delay: egen min_discount_unframed = min(discount_unframed) |
|
|
by id delay: egen max_discount_unframed = max(discount_unframed) |
|
|
|
|
|
gen diff = discount_framed - discount_unframed |
|
|
gen diff72 = discount_framed - discount_unframed |
|
|
gen absDiff = abs(discount_framed - discount_unframed) |
|
|
|
|
|
|
|
|
|
|
|
gen contNew = fined == 0 |
|
|
gen fullNew = fined == 1 |
|
|
|
|
|
gen sample = "new" |
|
|
|
|
|
append using "data/dataExpA.dta" |
|
|
gen sqDiff = abs(discount_framed^2 - discount_unframed^2) / 100 |
|
|
|
|
|
|
|
|
replace sample = "old" if sample == "" |
|
|
replace absDiff = abs(discount_framed - discount_unframed) |
|
|
|
|
|
replace Full = 0 if sample == "new" |
|
|
replace Cont = 0 if sample == "new" |
|
|
replace Rule72 = 0 if sample == "new" |
|
|
replace Rhetoric = 0 if sample == "new" |
|
|
replace fullNew = 0 if sample == "old" |
|
|
replace contNew = 0 if sample == "old" |
|
|
|
|
|
gen condition = . |
|
|
replace condition = 0 if Control == 1 |
|
|
replace condition = 1 if contNew == 1 |
|
|
replace condition = 2 if Full == 1 |
|
|
replace condition = 3 if fullNew == 1 |
|
|
replace condition = 4 if Rule72 == 1 |
|
|
replace condition = 5 if Rhetoric == 1 |
|
|
la de condition 0 "C old" 1 "C new" 2 "Tr old" 3 "Tr new" 4 "Subst. only" 5 "Rhet. only" |
|
|
la val condition condition |
|
|
|
|
|
|
|
|
|
|
|
su score_compounding if Full == 1 |
|
|
su score_compounding if Control == 1 |
|
|
|
|
|
|
|
|
|
|
|
reg score_compounding contNew fullNew if sample == "new" & multi == 0, nocons cl(id) |
|
|
reg discount_unframed contNew fullNew if sample == "new" & multi == 0, nocons cl(id) |
|
|
reg discount_framed contNew fullNew if sample == "new" & multi == 0, nocons cl(id) |
|
|
reg absDiff contNew fullNew if sample == "new" & multi == 0, nocons cl(id) |
|
|
reg sqDiff contNew fullNew if sample == "new" & multi == 0, nocons cl(id) |
|
|
reg diff contNew fullNew if sample == "new" & multi == 0, nocons cl(id) |
|
|
|
|
|
reg absDiff fullNew if sample == "new" & multi == 0, cl(id) |
|
|
reg sqDiff fullNew if sample == "new" & multi == 0, cl(id) |
|
|
reg diff fullNew if sample == "new" & multi == 0, cl(id) |
|
|
|
|
|
|
|
|
reg discount_framed fullNew if sample == "new" & multi == 0, cl(id) |
|
|
reg discount_framed Full if sample == "old" & multi == 0 & (Full == 1 | Control == 1), cl(id) |
|
|
|
|
|
|
|
|
reg absDiff Full if multi == 0 & (Full == 1 | fullNew == 1), cl(id) |
|
|
|
|
|
reg absDiff if multi == 0 & Full == 1 , cl(id) |
|
|
reg absDiff if multi == 0 & fullNew == 1 , cl(id) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bysort id: egen vSimple = mean(discount_unfr) |
|
|
bysort id: egen vComplex = mean(discount_framed) |
|
|
|
|
|
gen dRaw = vComplex - vSimple |
|
|
gen dAbs = abs(dRaw) |
|
|
gen dSq = dAbs^2 |
|
|
|
|
|
|
|
|
replace id = 10000 + id if sample == "old" |
|
|
replace id = 20000 + id if sample == "new" |
|
|
|
|
|
cap drop tag |
|
|
egen tag = tag(id) |
|
|
|
|
|
cap drop r72report |
|
|
gen r72report = rule72 == 1 |
|
|
|
|
|
cap drop r72invReport |
|
|
gen r72invReport = rule72_inv == 1 |
|
|
|
|
|
|
|
|
|
|
|
keep if multi == 0 |
|
|
|
|
|
|
|
|
bysort id: egen meanVsimple36_i = mean(discount_unframed) if delay == 36 |
|
|
bysort id: egen meanVsimple72_i = mean(discount_unframed) if delay == 72 |
|
|
|
|
|
bysort id: egen meanVsimple36 = mean(meanVsimple36_i) |
|
|
bysort id: egen meanVsimple72 = mean(meanVsimple72_i) |
|
|
|
|
|
replace meanVsimple36 = meanVsimple36 / 100 |
|
|
replace meanVsimple72 = meanVsimple72 / 100 |
|
|
|
|
|
gen delta = meanVsimple72 / meanVsimple36 |
|
|
gen beta = meanVsimple36^2 / meanVsimple72 |
|
|
|
|
|
gen meanVsimple = 100 * (meanVsimple36 + meanVsimple72)/2 |
|
|
|
|
|
|
|
|
|
|
|
bysort id: egen meanVsimple36first_i = mean(discount_unframed) if delay == 36 & treatment <= 5 |
|
|
bysort id: egen meanVsimple72first_i = mean(discount_unframed) if delay == 72 & treatment <= 5 |
|
|
|
|
|
bysort id: egen meanVsimple36first = mean(meanVsimple36first_i) |
|
|
bysort id: egen meanVsimple72first = mean(meanVsimple72first_i) |
|
|
|
|
|
replace meanVsimple36first = meanVsimple36first / 100 |
|
|
replace meanVsimple72first = meanVsimple72first / 100 |
|
|
|
|
|
gen deltaFirst = meanVsimple72first / meanVsimple36first |
|
|
gen betaFirst = meanVsimple36first^2 / meanVsimple72first |
|
|
|
|
|
|
|
|
bysort id: egen meanVsimple36second_i = mean(discount_unframed) if delay == 36 & treatment > 5 |
|
|
bysort id: egen meanVsimple72second_i = mean(discount_unframed) if delay == 72 & treatment > 5 |
|
|
|
|
|
bysort id: egen meanVsimple36second = mean(meanVsimple36second_i) |
|
|
bysort id: egen meanVsimple72second = mean(meanVsimple72second_i) |
|
|
|
|
|
|
|
|
|
|
|
replace meanVsimple36second = meanVsimple36second / 100 |
|
|
replace meanVsimple72second = meanVsimple72second / 100 |
|
|
|
|
|
gen deltaSecond = meanVsimple72second / meanVsimple36second |
|
|
gen betaSecond = meanVsimple36second^2 / meanVsimple72second |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bysort id: egen meanVcomplex36_i = mean(discount_framed) if delay == 36 |
|
|
bysort id: egen meanVcomplex72_i = mean(discount_framed) if delay == 72 |
|
|
|
|
|
bysort id: egen meanVcomplex36 = mean(meanVcomplex36_i) |
|
|
bysort id: egen meanVcomplex72 = mean(meanVcomplex72_i) |
|
|
|
|
|
replace meanVcomplex36 = meanVcomplex36 / 100 |
|
|
replace meanVcomplex72 = meanVcomplex72 / 100 |
|
|
|
|
|
gen meanVcomplex = 100 * (meanVcomplex36 + meanVcomplex72)/2 |
|
|
|
|
|
replace income = . if income < 0 |
|
|
replace income = 1000*income if sample == "old" |
|
|
|
|
|
save "data/managedData.dta", replace |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if 1 { |
|
|
forvalues i = 1 / 5 { |
|
|
noisily: tab finlit`i' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if 1 { |
|
|
|
|
|
|
|
|
if 1 { |
|
|
local scale = 1.3 |
|
|
local aspect = 0.8 |
|
|
|
|
|
preserve |
|
|
keep if sample == "old" |
|
|
replace diff = 100 if diff>100 |
|
|
replace diff = -100 if diff < -100 |
|
|
distplot diff if fined <= 1, over(fined) |
|
|
scheme(s2mono) |
|
|
legend(order(1 "Control A" 2 "Treatment A") col(1) ring(0) pos(11)) |
|
|
xtitle("Valuation difference (complex minus simple)") |
|
|
ytitle("Cumulative probability") xlabel(-100(50)100) |
|
|
bgcolor(white) graphregion(color(white)) |
|
|
scale(*`scale') aspect(`aspect') |
|
|
graph export "graphs/cdfExpA.pdf", replace |
|
|
restore |
|
|
|
|
|
|
|
|
|
|
|
preserve |
|
|
keep if sample == "new" |
|
|
replace diff = -100 if diff < -100 |
|
|
replace diff = 100 if diff > 100 |
|
|
distplot diff , over(condition) |
|
|
scheme(s2mono) |
|
|
legend(order(1 "Control B" 2 "Treatment B") col(1) ring(0) pos(11)) |
|
|
xtitle("Valuation difference (complex minus simple)") |
|
|
ytitle("Cumulative probability") xlabel(-100(50)100) |
|
|
bgcolor(white) graphregion(color(white)) |
|
|
scale(*`scale') aspect(`aspect') |
|
|
graph export "graphs/cdfExpB.pdf", replace |
|
|
restore |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if 1 { |
|
|
|
|
|
bysort id delay: egen vSimple12_i = mean(discount_unframed) if amount == 12 |
|
|
bysort id delay: egen vSimple14_i = mean(discount_unframed) if amount == 14 |
|
|
bysort id delay: egen vSimple16_i = mean(discount_unframed) if amount == 16 |
|
|
bysort id delay: egen vSimple18_i = mean(discount_unframed) if amount == 18 |
|
|
bysort id delay: egen vSimple20_i = mean(discount_unframed) if amount == 20 |
|
|
|
|
|
bysort id delay: egen vSimple12 = mean(vSimple12_i) |
|
|
bysort id delay: egen vSimple14 = mean(vSimple14_i) |
|
|
bysort id delay: egen vSimple16 = mean(vSimple16_i) |
|
|
bysort id delay: egen vSimple18 = mean(vSimple18_i) |
|
|
bysort id delay: egen vSimple20 = mean(vSimple20_i) |
|
|
|
|
|
gen simpleDiff = . |
|
|
replace simpleDiff = discount_unframed - vSimple14 if amount == 12 |
|
|
replace simpleDiff = discount_unframed - vSimple16 if amount == 18 |
|
|
replace simpleDiff = discount_unframed - vSimple12 if amount == 14 |
|
|
replace simpleDiff = discount_unframed - vSimple18 if amount == 16 |
|
|
|
|
|
local scale = 1.1 |
|
|
local aspect = 0.8 |
|
|
preserve |
|
|
keep if sample == "new" |
|
|
keep if fined == 0 |
|
|
stack diff simpleDiff, into(depVar) clear |
|
|
keep if depVar ~= . |
|
|
save "data/temp.dta", replace |
|
|
restore |
|
|
|
|
|
preserve |
|
|
keep if sample == "new" |
|
|
keep if fined == 1 |
|
|
stack diff simpleDiff, into(depVar) clear |
|
|
replace _stack = 5 if _stack == 1 |
|
|
append using "data/temp.dta" |
|
|
replace _stack = 3 if _stack == 2 |
|
|
replace _stack = 2 if _stack == 5 |
|
|
keep if depVar ~= . |
|
|
replace depVar = 100 if depVar>100 |
|
|
replace depVar = -100 if depVar < -100 |
|
|
distplot depVar, over(_stack) |
|
|
scheme(s2mono) |
|
|
legend(order(1 "Control B" 2 "Treatment B" 3 "Simple frame B") col(1) ring(0) pos(11)) |
|
|
xtitle(" ") |
|
|
ytitle(" ") xlabel(-100(50)100) |
|
|
bgcolor(white) graphregion(color(white)) |
|
|
scale(*`scale') aspect(`aspect') |
|
|
graph export "graphs/cdfBWithSimple.pdf", replace |
|
|
restore |
|
|
|
|
|
|
|
|
|
|
|
local scale = 1.1 |
|
|
local aspect = 0.8 |
|
|
preserve |
|
|
keep if sample == "old" |
|
|
keep if fined == 0 |
|
|
stack diff simpleDiff, into(depVar) clear |
|
|
keep if depVar ~= . |
|
|
save "data/temp.dta", replace |
|
|
restore |
|
|
|
|
|
preserve |
|
|
keep if sample == "old" |
|
|
keep if fined == 1 |
|
|
stack diff simpleDiff, into(depVar) clear |
|
|
replace _stack = 5 if _stack == 1 |
|
|
append using "data/temp.dta" |
|
|
replace _stack = 3 if _stack == 2 |
|
|
replace _stack = 2 if _stack == 5 |
|
|
keep if depVar ~= . |
|
|
replace depVar = 100 if depVar>100 |
|
|
replace depVar = -100 if depVar < -100 |
|
|
distplot depVar, over(_stack) |
|
|
scheme(s2mono) |
|
|
legend(order(1 "Control A" 2 "Treatment A" 3 "Simple frame A") col(1) ring(0) pos(11)) |
|
|
xtitle(" ") |
|
|
ytitle(" ") xlabel(-100(50)100) |
|
|
bgcolor(white) graphregion(color(white)) |
|
|
scale(*`scale') aspect(`aspect') |
|
|
graph export "graphs/cdfAWithSimple.pdf", replace |
|
|
restore |
|
|
} |
|
|
|
|
|
|
|
|
if 1 { |
|
|
|
|
|
preserve |
|
|
|
|
|
local var = "score_compounding" |
|
|
local scale = 1.3 |
|
|
local aspect = 0.8 |
|
|
local lwidth = 0.2 |
|
|
|
|
|
keep if Full == 1 | Control == 1 | fullNew == 1 | contNew == 1 |
|
|
|
|
|
gen tr = . |
|
|
replace tr = 1 if Control == 1 |
|
|
replace tr = 2 if Full == 1 |
|
|
replace tr = 3 if contNew == 1 |
|
|
replace tr = 4 if fullNew == 1 |
|
|
|
|
|
|
|
|
xi, noomit: reg `var' i.tr, nocons cl(id) |
|
|
local s1 = _se[_Itr_1] |
|
|
local s2 = _se[_Itr_2] |
|
|
local s3 = _se[_Itr_3] |
|
|
local s4 = _se[_Itr_4] |
|
|
|
|
|
collapse `var', by(tr) |
|
|
|
|
|
gen top = . |
|
|
replace top = `var' + `s1'*1.96 if tr == 1 |
|
|
replace top = `var' + `s2'*1.96 if tr == 2 |
|
|
replace top = `var' + `s3'*1.96 if tr == 3 |
|
|
replace top = `var' + `s4'*1.96 if tr == 4 |
|
|
|
|
|
gen bottom = . |
|
|
replace bottom = `var' - `s1'*1.96 if tr == 1 |
|
|
replace bottom = `var' - `s2'*1.96 if tr == 2 |
|
|
replace bottom = `var' - `s3'*1.96 if tr == 3 |
|
|
replace bottom = `var' - `s4'*1.96 if tr == 4 |
|
|
|
|
|
replace tr = tr + 0.5 if tr > 2 |
|
|
|
|
|
tw (bar `var' tr |
|
|
, barwidth(0.8) color(gs13) lwidth(`lwidth') lcolor(black)) |
|
|
(bar `var' tr if tr == 2 | tr > 4 |
|
|
, barwidth(0.8) color(gs5) lwidth(`lwidth') lcolor(black)) |
|
|
(rcap bottom top tr, lcolor(black) lwidth(`lwidth')) |
|
|
, |
|
|
legend(order(1 "Control" 2 "Treatment") col(2) ring(0) pos(12)) |
|
|
xtitle(" ") ytitle("Correct answers (out of 5)" " ") |
|
|
ylabel(0(1)5) |
|
|
xlabel(1.5 "Experiment A" 4 "Experiment B") |
|
|
bgcolor(white) graphregion(color(white)) |
|
|
scale(*`scale') aspect(`aspect') |
|
|
xscale(range(0.5 5)) |
|
|
graph export "graphs/figure1A.pdf", replace |
|
|
|
|
|
restore |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
preserve |
|
|
local var = "discount_framed" |
|
|
local scale = 1.3 |
|
|
local aspect = 0.8 |
|
|
local lwidth = 0.2 |
|
|
|
|
|
keep if Full == 1 | Control == 1 | fullNew == 1 | contNew == 1 |
|
|
|
|
|
gen tr = . |
|
|
replace tr = 1 if Control == 1 |
|
|
replace tr = 2 if Full == 1 |
|
|
replace tr = 3 if contNew == 1 |
|
|
replace tr = 4 if fullNew == 1 |
|
|
|
|
|
|
|
|
xi, noomit: reg `var' i.tr, nocons cl(id) |
|
|
local s1 = _se[_Itr_1] |
|
|
local s2 = _se[_Itr_2] |
|
|
local s3 = _se[_Itr_3] |
|
|
local s4 = _se[_Itr_4] |
|
|
|
|
|
collapse `var', by(tr) |
|
|
|
|
|
gen top = . |
|
|
replace top = `var' + `s1'*1.96 if tr == 1 |
|
|
replace top = `var' + `s2'*1.96 if tr == 2 |
|
|
replace top = `var' + `s3'*1.96 if tr == 3 |
|
|
replace top = `var' + `s4'*1.96 if tr == 4 |
|
|
|
|
|
gen bottom = . |
|
|
replace bottom = `var' - `s1'*1.96 if tr == 1 |
|
|
replace bottom = `var' - `s2'*1.96 if tr == 2 |
|
|
replace bottom = `var' - `s3'*1.96 if tr == 3 |
|
|
replace bottom = `var' - `s4'*1.96 if tr == 4 |
|
|
|
|
|
replace tr = tr + 0.5 if tr > 2 |
|
|
|
|
|
tw (bar `var' tr |
|
|
, barwidth(0.8) color(gs13) lwidth(`lwidth') lcolor(black)) |
|
|
(bar `var' tr if tr == 2 | tr > 4 |
|
|
, barwidth(0.8) color(gs5) lwidth(`lwidth') lcolor(black)) |
|
|
(rcap bottom top tr, lcolor(black) lwidth(`lwidth')) |
|
|
, |
|
|
legend(order(1 "Control" 2 "Treatment") col(2) ring(0) pos(12)) |
|
|
xtitle(" ") ytitle("WTP in cents for $1 in the future," "framed as interest-bearing investment" " ") |
|
|
ylabel(0(20)100) |
|
|
xscale(range(0.5 5)) |
|
|
xlabel(1.5 "Experiment A" 4 "Experiment B") |
|
|
bgcolor(white) graphregion(color(white)) |
|
|
scale(*`scale') aspect(`aspect') |
|
|
graph export "graphs/figure1B.pdf", replace |
|
|
|
|
|
|
|
|
restore |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
preserve |
|
|
|
|
|
local var = "absDiff" |
|
|
replace `var' = -`var' |
|
|
local scale = 1.3 |
|
|
local aspect = 0.8 |
|
|
local lwidth = 0.2 |
|
|
local lwidth2 = 0.6 |
|
|
|
|
|
keep if Full == 1 | Control == 1 | fullNew == 1 | contNew == 1 |
|
|
|
|
|
gen tr = . |
|
|
replace tr = 1 if Control == 1 |
|
|
replace tr = 2 if Full == 1 |
|
|
replace tr = 3 if contNew == 1 |
|
|
replace tr = 4 if fullNew == 1 |
|
|
|
|
|
|
|
|
xi, noomit: reg `var' i.tr, nocons cl(id) |
|
|
local s1 = _se[_Itr_1] |
|
|
local s2 = _se[_Itr_2] |
|
|
local s3 = _se[_Itr_3] |
|
|
local s4 = _se[_Itr_4] |
|
|
|
|
|
collapse `var', by(tr) |
|
|
|
|
|
gen top = . |
|
|
replace top = `var' + `s1'*1.96 if tr == 1 |
|
|
replace top = `var' + `s2'*1.96 if tr == 2 |
|
|
replace top = `var' + `s3'*1.96 if tr == 3 |
|
|
replace top = `var' + `s4'*1.96 if tr == 4 |
|
|
|
|
|
gen bottom = . |
|
|
replace bottom = `var' - `s1'*1.96 if tr == 1 |
|
|
replace bottom = `var' - `s2'*1.96 if tr == 2 |
|
|
replace bottom = `var' - `s3'*1.96 if tr == 3 |
|
|
replace bottom = `var' - `s4'*1.96 if tr == 4 |
|
|
|
|
|
keep if tr <= 2 |
|
|
|
|
|
local top -15 |
|
|
tw (line `var' tr |
|
|
, lwidth(`lwidth2') lcolor(black)) |
|
|
(rcap bottom top tr, lcolor(black) lwidth(`lwidth')) |
|
|
, |
|
|
legend(off) |
|
|
xtitle(" ") ytitle("Negative absolute value" "of valuation difference" " ") |
|
|
ylabel(-30(5)`top') |
|
|
xscale(range(0.5 2.5)) |
|
|
xlabel(1 "Control" 2 "Treatment") |
|
|
bgcolor(white) graphregion(color(white)) |
|
|
scale(*`scale') aspect(`aspect') |
|
|
|
|
|
graph export "graphs/finCompLinesA.pdf", replace |
|
|
restore |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
preserve |
|
|
|
|
|
local var = "absDiff" |
|
|
replace `var' = -`var' |
|
|
local scale = 1.3 |
|
|
local aspect = 0.8 |
|
|
local lwidth = 0.2 |
|
|
local lwidth2 = 0.6 |
|
|
|
|
|
keep if Full == 1 | Control == 1 | fullNew == 1 | contNew == 1 |
|
|
|
|
|
gen tr = . |
|
|
replace tr = 1 if Control == 1 |
|
|
replace tr = 2 if Full == 1 |
|
|
replace tr = 3 if contNew == 1 |
|
|
replace tr = 4 if fullNew == 1 |
|
|
|
|
|
|
|
|
xi, noomit: reg `var' i.tr, nocons cl(id) |
|
|
local s1 = _se[_Itr_1] |
|
|
local s2 = _se[_Itr_2] |
|
|
local s3 = _se[_Itr_3] |
|
|
local s4 = _se[_Itr_4] |
|
|
|
|
|
collapse `var', by(tr) |
|
|
|
|
|
gen top = . |
|
|
replace top = `var' + `s1'*1.96 if tr == 1 |
|
|
replace top = `var' + `s2'*1.96 if tr == 2 |
|
|
replace top = `var' + `s3'*1.96 if tr == 3 |
|
|
replace top = `var' + `s4'*1.96 if tr == 4 |
|
|
|
|
|
gen bottom = . |
|
|
replace bottom = `var' - `s1'*1.96 if tr == 1 |
|
|
replace bottom = `var' - `s2'*1.96 if tr == 2 |
|
|
replace bottom = `var' - `s3'*1.96 if tr == 3 |
|
|
replace bottom = `var' - `s4'*1.96 if tr == 4 |
|
|
|
|
|
keep if tr > 2 |
|
|
replace tr = tr - 2 |
|
|
|
|
|
local top -15 |
|
|
tw (line `var' tr |
|
|
, lwidth(`lwidth2') lcolor(black)) |
|
|
(rcap bottom top tr, lcolor(black) lwidth(`lwidth')) |
|
|
, |
|
|
legend(off) |
|
|
xtitle(" ") ytitle("Negative absolute value" "of valuation difference" " ") |
|
|
ylabel(-30(5)`top') |
|
|
xscale(range(0.5 2.5)) |
|
|
xlabel(1 "Control" 2 "Treatment") |
|
|
bgcolor(white) graphregion(color(white)) |
|
|
scale(*`scale') aspect(`aspect') |
|
|
|
|
|
graph export "graphs/finCompLinesB.pdf", replace |
|
|
restore |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if 1 { |
|
|
|
|
|
if 1 { |
|
|
preserve |
|
|
|
|
|
replace Full = fullNew if sample == "new" |
|
|
|
|
|
reg score_compounding Full if tag == 1 & (Full == 1 | Control == 1) & sample == "old", cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/testScores.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) replace |
|
|
|
|
|
reg score_compounding Full if tag == 1 & (fullNew == 1 | contNew == 1) & sample == "new", cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/testScores.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) |
|
|
|
|
|
|
|
|
reg score_indexing Full if tag == 1 & (Full == 1 | Control == 1) & sample == "old", cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/testScores.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) |
|
|
|
|
|
reg score_indexing Full if tag == 1 & (fullNew == 1 | contNew == 1) & sample == "new", cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/testScores.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) |
|
|
restore |
|
|
} |
|
|
|
|
|
|
|
|
if 1 { |
|
|
|
|
|
|
|
|
|
|
|
reg t1 Full Rule72 Rhetoric if sample == "old" & tag == 1, cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/indivTestQuestionsA.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) replace |
|
|
|
|
|
|
|
|
reg t2 Full Rule72 Rhetoric if sample == "old" & tag == 1, cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/indivTestQuestionsA.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg t3 Full Rule72 Rhetoric if sample == "old" & tag == 1, cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/indivTestQuestionsA.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg t4 Full Rule72 Rhetoric if sample == "old" & tag == 1, cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/indivTestQuestionsA.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
reg t5 Full Rule72 Rhetoric if sample == "old" & tag == 1, cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/indivTestQuestionsA.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
preserve |
|
|
|
|
|
replace Full = fullNew if sample == "new" |
|
|
|
|
|
reg t1 Full if sample == "new" , cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/indivTestQuestionsB.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) replace |
|
|
|
|
|
|
|
|
reg t2 Full if sample == "new" , cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/indivTestQuestionsB.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg t3 Full if sample == "new" , cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/indivTestQuestionsB.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg t4 Full if sample == "new" , cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/indivTestQuestionsB.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
reg t5 Full if sample == "new" , cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/indivTestQuestionsB.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
restore |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if 1 { |
|
|
|
|
|
preserve |
|
|
|
|
|
replace Full = fullNew if sample == "new" |
|
|
|
|
|
reg calculate Full if tag == 1 & (Full == 1 | Control == 1) & sample == "old", cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/selfReports.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) replace |
|
|
|
|
|
reg calculate Full if sample == "new" & tag == 1 & sample == "new", cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/selfReports.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) |
|
|
|
|
|
reg r72report Full if tag == 1 & (Full == 1 | Control == 1) & sample == "old", cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/selfReports.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) |
|
|
|
|
|
reg r72report Full if sample == "new" & tag == 1 & sample == "new", cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/selfReports.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) |
|
|
|
|
|
reg r72invReport Full if tag == 1 & (Full == 1 | Control == 1) & sample == "old", cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/selfReports.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) |
|
|
|
|
|
reg r72invReport Full if sample == "new" & tag == 1 & sample == "new", cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/selfReports.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) |
|
|
|
|
|
reg help_test Full if tag == 1 & (Full == 1 | Control == 1) & sample == "old", cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/selfReports.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) |
|
|
|
|
|
reg help_test Full if sample == "new" & tag == 1 & sample == "new", cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/selfReports.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) |
|
|
restore |
|
|
} |
|
|
|
|
|
|
|
|
if 1 { |
|
|
|
|
|
preserve |
|
|
replace Full = fullNew if sample == "new" |
|
|
|
|
|
|
|
|
reg discount_framed Full if (Full == 1 | Control == 1) & sample == "old" , cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/directionalBehaviorV2.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) replace |
|
|
|
|
|
|
|
|
reg discount_framed Full if (fullNew == 1 | contNew == 1) & sample == "new" , cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/directionalBehaviorV2.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg discount_framed Full if (Full == 1 | Control == 1) & sample == "old" & delay == 72, cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/directionalBehaviorV2.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
reg discount_framed Full if (fullNew == 1 | contNew == 1) & sample == "new" & delay == 72, cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/directionalBehaviorV2.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
reg discount_framed Full if (Full == 1 | Control == 1) & sample == "old" & delay == 36, cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/directionalBehaviorV2.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg discount_framed Full if (fullNew == 1 | contNew == 1) & sample == "new" & delay == 36, cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/directionalBehaviorV2.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
restore |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if 1 { |
|
|
|
|
|
preserve |
|
|
replace Full = fullNew if sample == "new" |
|
|
|
|
|
cap gen negAbsDiff = -absDiff |
|
|
|
|
|
replace Control = 1 if contNew == 1 |
|
|
|
|
|
reg negAbsDiff Control Full Rule72 Rhetoric if sample == "old", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
noisily: nlcom 1 - _b[Full]/_b[Control] |
|
|
outreg2 using "tables/finComp.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) replace |
|
|
|
|
|
reg negAbsDiff Control Full if sample == "new", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
noisily: di "Relative improvement:" |
|
|
noisily: nlcom 1 - _b[Full]/_b[Control] |
|
|
outreg2 using "tables/finComp.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
reg negAbsDiff Control Full Rule72 Rhetoric if sample == "old" & delay == 72, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
outreg2 using "tables/finComp.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg negAbsDiff Control Full if sample == "new" & delay == 72, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
outreg2 using "tables/finComp.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
reg negAbsDiff Control Full Rule72 Rhetoric if sample == "old" & delay == 36, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
outreg2 using "tables/finComp.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg negAbsDiff Control Full if sample == "new" & delay == 36, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
outreg2 using "tables/finComp.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
restore |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if 1 { |
|
|
|
|
|
preserve |
|
|
replace Full = fullNew if sample == "new" |
|
|
|
|
|
cap gen negSqDiff = -sqDiff |
|
|
|
|
|
replace Control = 1 if contNew == 1 |
|
|
|
|
|
reg negSqDiff Control Full Rule72 Rhetoric if sample == "old", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
noisily: nlcom 1 - _b[Full]/_b[Control] |
|
|
outreg2 using "tables/finCompSq.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) replace |
|
|
|
|
|
reg negSqDiff Control Full if sample == "new", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
noisily: di "Relative improvement:" |
|
|
noisily: nlcom 1 - _b[Full]/_b[Control] |
|
|
outreg2 using "tables/finCompSq.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
reg negSqDiff Control Full Rule72 Rhetoric if sample == "old" & delay == 72, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
outreg2 using "tables/finCompSq.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg negSqDiff Control Full if sample == "new" & delay == 72, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
outreg2 using "tables/finCompSq.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
reg negSqDiff Control Full Rule72 Rhetoric if sample == "old" & delay == 36, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
outreg2 using "tables/finCompSq.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg negSqDiff Control Full if sample == "new" & delay == 36, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
outreg2 using "tables/finCompSq.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
restore |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if 1 { |
|
|
|
|
|
cap drop correctionFactor |
|
|
bysort id delay: egen correctionFactor = mean(discount_unframed) |
|
|
replace correctionFactor = 1 / correctionFactor |
|
|
|
|
|
cap drop finCompAvg |
|
|
cap drop finCompCorr |
|
|
gen finCompCorr = -correctionFactor * absDiff * 100 |
|
|
|
|
|
preserve |
|
|
replace Full = fullNew if sample == "new" |
|
|
replace Control = 1 if contNew == 1 |
|
|
|
|
|
cap gen negAbsDiff = -absDiff |
|
|
|
|
|
reg finCompCorr Control Full Rule72 Rhetoric if sample == "old", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
noisily: nlcom 1 - _b[Full]/_b[Control] |
|
|
outreg2 using "tables/finCompCorr.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) replace |
|
|
|
|
|
reg finCompCorr Control Full if sample == "new", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
noisily: di "Relative improvement:" |
|
|
noisily: nlcom 1 - _b[Full]/_b[Control] |
|
|
outreg2 using "tables/finCompCorr.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
reg finCompCorr Control Full Rule72 Rhetoric if sample == "old" & delay == 72, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
outreg2 using "tables/finCompCorr.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg finCompCorr Control Full if sample == "new" & delay == 72, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
outreg2 using "tables/finCompCorr.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
reg finCompCorr Control Full Rule72 Rhetoric if sample == "old" & delay == 36, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
outreg2 using "tables/finCompCorr.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg finCompCorr Control Full if sample == "new" & delay == 36, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
outreg2 using "tables/finCompCorr.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
restore |
|
|
} |
|
|
|
|
|
|
|
|
if 1 { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cap drop rhoAgg |
|
|
gen rhoAgg = . |
|
|
reg v_unframed amount if sample == "new" & Control == 0 & delay == 36 |
|
|
replace rhoAgg = _b[amount] if sample == "new" & Control == 0 & delay == 36 |
|
|
reg v_unframed amount if sample == "new" & contNew == 1 & delay == 36 |
|
|
replace rhoAgg = _b[amount] if sample == "new" & contNew == 1 & delay == 36 |
|
|
reg v_unframed amount if sample == "old" & Control == 0 & delay == 36 |
|
|
replace rhoAgg = _b[amount] if sample == "old" & Control == 0 & delay == 36 |
|
|
reg v_unframed amount if sample == "old" & Control == 1 & delay == 36 |
|
|
replace rhoAgg = _b[amount] if sample == "old" & Control == 1 & delay == 36 |
|
|
reg v_unframed amount if sample == "new" & Control == 0 & delay == 72 |
|
|
replace rhoAgg = _b[amount] if sample == "new" & Control == 0 & delay == 72 |
|
|
reg v_unframed amount if sample == "new" & contNew == 1 & delay == 72 |
|
|
replace rhoAgg = _b[amount] if sample == "new" & contNew == 1 & delay == 72 |
|
|
reg v_unframed amount if sample == "old" & Control == 0 & delay == 72 |
|
|
replace rhoAgg = _b[amount] if sample == "old" & Control == 0 & delay == 72 |
|
|
reg v_unframed amount if sample == "old" & Control == 1 & delay == 72 |
|
|
replace rhoAgg = _b[amount] if sample == "old" & Control == 1 & delay == 72 |
|
|
|
|
|
|
|
|
cap drop id2 |
|
|
egen id2 = group(id) |
|
|
|
|
|
cap drop rho |
|
|
gen rho = . |
|
|
forvalues i = 1 / 803 { |
|
|
reg v_unframed amount if id2 == `i' |
|
|
replace rho = _b[amount] if id2 == `i' |
|
|
} |
|
|
|
|
|
|
|
|
cap drop correctionFactor |
|
|
gen correctionFactor = 1 / rho |
|
|
|
|
|
cap drop finCompAvg |
|
|
cap drop finCompCorrAltApprox |
|
|
gen finCompCorrAltApprox = -correctionFactor * absDiff |
|
|
|
|
|
preserve |
|
|
replace Full = fullNew if sample == "new" |
|
|
|
|
|
replace Control = 1 if contNew == 1 |
|
|
|
|
|
reg finCompCorrAltApprox Control Full Rule72 Rhetoric if sample == "old", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
noisily: nlcom 1 - _b[Full]/_b[Control] |
|
|
outreg2 using "tables/finCompCorrAltApprox.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) replace |
|
|
|
|
|
reg finCompCorrAltApprox Control Full if sample == "new", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
noisily: di "Relative improvement:" |
|
|
noisily: nlcom 1 - _b[Full]/_b[Control] |
|
|
outreg2 using "tables/finCompCorrAltApprox.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
reg finCompCorrAltApprox Control Full Rule72 Rhetoric if sample == "old" & delay == 72, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
outreg2 using "tables/finCompCorrAltApprox.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg finCompCorrAltApprox Control Full if sample == "new" & delay == 72, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
outreg2 using "tables/finCompCorrAltApprox.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
reg finCompCorrAltApprox Control Full Rule72 Rhetoric if sample == "old" & delay == 36, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
outreg2 using "tables/finCompCorrAltApprox.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg finCompCorrAltApprox Control Full if sample == "new" & delay == 36, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
outreg2 using "tables/finCompCorrAltApprox.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
restore |
|
|
} |
|
|
|
|
|
|
|
|
if 1 { |
|
|
|
|
|
cap drop correctionFactorSq |
|
|
bysort id delay: egen correctionFactorSq = mean(discount_unframed) |
|
|
replace correctionFactorSq = correctionFactorSq / 100 |
|
|
replace correctionFactorSq = 1 / correctionFactorSq^2 |
|
|
|
|
|
cap drop finCompAvg |
|
|
cap drop finCompCorrSq |
|
|
gen finCompCorrSq = -correctionFactorSq * sqDiff |
|
|
|
|
|
preserve |
|
|
replace Full = fullNew if sample == "new" |
|
|
replace Control = 1 if contNew == 1 |
|
|
|
|
|
|
|
|
reg finCompCorrSq Control Full Rule72 Rhetoric if sample == "old", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
noisily: nlcom 1 - _b[Full]/_b[Control] |
|
|
outreg2 using "tables/finCompCorrSq.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) replace |
|
|
|
|
|
reg finCompCorrSq Control Full if sample == "new", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
noisily: di "Relative improvement:" |
|
|
noisily: nlcom 1 - _b[Full]/_b[Control] |
|
|
outreg2 using "tables/finCompCorrSq.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
reg finCompCorrSq Control Full Rule72 Rhetoric if sample == "old" & delay == 72, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
outreg2 using "tables/finCompCorrSq.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg finCompCorrSq Control Full if sample == "new" & delay == 72, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
outreg2 using "tables/finCompCorrSq.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
reg finCompCorrSq Control Full Rule72 Rhetoric if sample == "old" & delay == 36, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
outreg2 using "tables/finCompCorrSq.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg finCompCorrSq Control Full if sample == "new" & delay == 36, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
outreg2 using "tables/finCompCorrSq.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
restore |
|
|
} |
|
|
|
|
|
|
|
|
if 1 { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cap drop rhoAgg |
|
|
gen rhoAgg = . |
|
|
reg v_unframed amount if sample == "new" & Control == 0 & delay == 36 |
|
|
replace rhoAgg = _b[amount] if sample == "new" & Control == 0 & delay == 36 |
|
|
reg v_unframed amount if sample == "new" & contNew == 1 & delay == 36 |
|
|
replace rhoAgg = _b[amount] if sample == "new" & contNew == 1 & delay == 36 |
|
|
reg v_unframed amount if sample == "old" & Control == 0 & delay == 36 |
|
|
replace rhoAgg = _b[amount] if sample == "old" & Control == 0 & delay == 36 |
|
|
reg v_unframed amount if sample == "old" & Control == 1 & delay == 36 |
|
|
replace rhoAgg = _b[amount] if sample == "old" & Control == 1 & delay == 36 |
|
|
reg v_unframed amount if sample == "new" & Control == 0 & delay == 72 |
|
|
replace rhoAgg = _b[amount] if sample == "new" & Control == 0 & delay == 72 |
|
|
reg v_unframed amount if sample == "new" & contNew == 1 & delay == 72 |
|
|
replace rhoAgg = _b[amount] if sample == "new" & contNew == 1 & delay == 72 |
|
|
reg v_unframed amount if sample == "old" & Control == 0 & delay == 72 |
|
|
replace rhoAgg = _b[amount] if sample == "old" & Control == 0 & delay == 72 |
|
|
reg v_unframed amount if sample == "old" & Control == 1 & delay == 72 |
|
|
replace rhoAgg = _b[amount] if sample == "old" & Control == 1 & delay == 72 |
|
|
|
|
|
|
|
|
cap drop id2 |
|
|
egen id2 = group(id) |
|
|
|
|
|
cap drop rho |
|
|
gen rho = . |
|
|
forvalues i = 1 / 803 { |
|
|
reg v_unframed amount if id2 == `i' |
|
|
replace rho = _b[amount] if id2 == `i' |
|
|
} |
|
|
|
|
|
|
|
|
cap drop correctionFactor |
|
|
gen correctionFactor = 1 / rhoAgg^2 |
|
|
|
|
|
cap drop finCompAvg |
|
|
cap drop finCompCorrAltApprox |
|
|
gen finCompCorrAltApprox = -correctionFactor * sqDiff |
|
|
|
|
|
preserve |
|
|
replace Full = fullNew if sample == "new" |
|
|
|
|
|
replace Control = 1 if contNew == 1 |
|
|
|
|
|
reg finCompCorrAltApprox Control Full Rule72 Rhetoric if sample == "old", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
noisily: nlcom 1 - _b[Full]/_b[Control] |
|
|
outreg2 using "tables/finCompCorrSqAltApprox.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) replace |
|
|
|
|
|
reg finCompCorrAltApprox Control Full if sample == "new", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
noisily: di "Relative improvement:" |
|
|
noisily: nlcom 1 - _b[Full]/_b[Control] |
|
|
outreg2 using "tables/finCompCorrSqAltApprox.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
reg finCompCorrAltApprox Control Full Rule72 Rhetoric if sample == "old" & delay == 72, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
outreg2 using "tables/finCompCorrSqAltApprox.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg finCompCorrAltApprox Control Full if sample == "new" & delay == 72, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
outreg2 using "tables/finCompCorrSqAltApprox.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
reg finCompCorrAltApprox Control Full Rule72 Rhetoric if sample == "old" & delay == 36, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
outreg2 using "tables/finCompCorrSqAltApprox.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg finCompCorrAltApprox Control Full if sample == "new" & delay == 36, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
outreg2 using "tables/finCompCorrSqAltApprox.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
restore |
|
|
} |
|
|
|
|
|
|
|
|
if 1 { |
|
|
preserve |
|
|
replace Full = fullNew if sample == "new" |
|
|
|
|
|
cap gen negAbsDiff = -absDiff |
|
|
|
|
|
reg discount_unframed Full if (Full == 1 | Control == 1) & delay == 72 & sample == "old", cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/simpleFrame.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) replace |
|
|
|
|
|
reg discount_unframed Full if (Full == 1 | contNew == 1) & delay == 72 & sample == "new", cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/simpleFrame.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg discount_unframed Full if (Full == 1 | Control == 1) & delay == 36 & sample == "old", cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/simpleFrame.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg discount_unframed Full if (Full == 1 | contNew == 1) & delay == 36 & sample == "new", cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom _b[_cons] + _b[Full] |
|
|
local levelFull = r(estimate) |
|
|
local seFull = r(se) |
|
|
outreg2 using "tables/simpleFrame.tex", |
|
|
addstat("subj", `subj', "levelFull",`levelFull', "seFull", `seFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
|
|
|
restore |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if 1 { |
|
|
|
|
|
|
|
|
preserve |
|
|
|
|
|
gen qSimple1 = . |
|
|
gen qSimple2 = . |
|
|
gen qSimple3 = . |
|
|
gen qSimple4 = . |
|
|
|
|
|
foreach tr in Full fullN Control contN { |
|
|
su meanVsimple if `tr' == 1, d |
|
|
|
|
|
replace qSimple1 = meanVsimple < r(p25) if `tr' == 1 |
|
|
replace qSimple2 = meanVsimple < r(p50) & meanVsimple >= r(p25) if `tr' == 1 |
|
|
replace qSimple3 = meanVsimple < r(p75) & meanVsimple >= r(p50) if `tr' == 1 |
|
|
replace qSimple4 = meanVsimple >= r(p75) if `tr' == 1 |
|
|
|
|
|
} |
|
|
|
|
|
replace Full = fullNew if sample == "new" |
|
|
|
|
|
cap gen Full1 = qSimple1 * Full |
|
|
cap gen Full2 = qSimple2 * Full |
|
|
cap gen Full3 = qSimple3 * Full |
|
|
cap gen Full4 = qSimple4 * Full |
|
|
|
|
|
cap gen negAbsDiff = -absDiff |
|
|
|
|
|
reg negAbsDiff Full1 Full2 Full3 Full4 qSimple1 qSimple2 qSimple3 qSimple4 if sample == "old", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom qSimple1 + Full1 |
|
|
local levelFull1 = r(estimate) |
|
|
local levelFull1se = r(se) |
|
|
lincom qSimple2 + Full2 |
|
|
local levelFull2 = r(estimate) |
|
|
local levelFull2se = r(se) |
|
|
lincom qSimple3 + Full3 |
|
|
local levelFull3 = r(estimate) |
|
|
local levelFull3se = r(se) |
|
|
lincom qSimple4 + Full4 |
|
|
local levelFull4 = r(estimate) |
|
|
local levelFull4se = r(se) |
|
|
outreg2 using "tables/finCompAggregation.tex", |
|
|
addstat( "subj", `subj', |
|
|
"levelFull1", `levelFull1', |
|
|
"levelFull1se", `levelFull1se', |
|
|
"levelFull2", `levelFull2', |
|
|
"levelFull2se", `levelFull2se', |
|
|
"levelFull3", `levelFull3', |
|
|
"levelFull3se", `levelFull3se', |
|
|
"levelFull4", `levelFull4', |
|
|
"levelFull4se", `levelFull4se' ) |
|
|
tex(frag) |
|
|
dec(3) adec(3) replace |
|
|
|
|
|
|
|
|
|
|
|
reg negAbsDiff Full1 Full2 Full3 Full4 qSimple1 qSimple2 qSimple3 qSimple4 if sample == "new", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom qSimple1 + Full1 |
|
|
local levelFull1 = r(estimate) |
|
|
local levelFull1se = r(se) |
|
|
lincom qSimple2 + Full2 |
|
|
local levelFull2 = r(estimate) |
|
|
local levelFull2se = r(se) |
|
|
lincom qSimple3 + Full3 |
|
|
local levelFull3 = r(estimate) |
|
|
local levelFull3se = r(se) |
|
|
lincom qSimple4 + Full4 |
|
|
local levelFull4 = r(estimate) |
|
|
local levelFull4se = r(se) |
|
|
outreg2 using "tables/finCompAggregation.tex", |
|
|
addstat( "subj", `subj', |
|
|
"levelFull1", `levelFull1', |
|
|
"levelFull1se", `levelFull1se', |
|
|
"levelFull2", `levelFull2', |
|
|
"levelFull2se", `levelFull2se', |
|
|
"levelFull3", `levelFull3', |
|
|
"levelFull3se", `levelFull3se', |
|
|
"levelFull4", `levelFull4', |
|
|
"levelFull4se", `levelFull4se' ) |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
|
|
|
restore |
|
|
} |
|
|
|
|
|
|
|
|
if 1 { |
|
|
|
|
|
|
|
|
preserve |
|
|
|
|
|
gen qSimple1 = . |
|
|
gen qSimple2 = . |
|
|
gen qSimple3 = . |
|
|
gen qSimple4 = . |
|
|
|
|
|
foreach tr in Full fullN Control contN { |
|
|
su meanVsimple if `tr' == 1, d |
|
|
|
|
|
replace qSimple1 = meanVsimple < r(p25) if `tr' == 1 |
|
|
replace qSimple2 = meanVsimple < r(p50) & meanVsimple >= r(p25) if `tr' == 1 |
|
|
replace qSimple3 = meanVsimple < r(p75) & meanVsimple >= r(p50) if `tr' == 1 |
|
|
replace qSimple4 = meanVsimple >= r(p75) if `tr' == 1 |
|
|
|
|
|
} |
|
|
|
|
|
replace Full = fullNew if sample == "new" |
|
|
|
|
|
cap gen Full1 = qSimple1 * Full |
|
|
cap gen Full2 = qSimple2 * Full |
|
|
cap gen Full3 = qSimple3 * Full |
|
|
cap gen Full4 = qSimple4 * Full |
|
|
|
|
|
cap gen negSqDiff = -sqDiff |
|
|
|
|
|
reg negSqDiff Full1 Full2 Full3 Full4 qSimple1 qSimple2 qSimple3 qSimple4 if sample == "old", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom qSimple1 + Full1 |
|
|
local levelFull1 = r(estimate) |
|
|
local levelFull1se = r(se) |
|
|
lincom qSimple2 + Full2 |
|
|
local levelFull2 = r(estimate) |
|
|
local levelFull2se = r(se) |
|
|
lincom qSimple3 + Full3 |
|
|
local levelFull3 = r(estimate) |
|
|
local levelFull3se = r(se) |
|
|
lincom qSimple4 + Full4 |
|
|
local levelFull4 = r(estimate) |
|
|
local levelFull4se = r(se) |
|
|
outreg2 using "tables/finCompAggregationSq.tex", |
|
|
addstat( "subj", `subj', |
|
|
"levelFull1", `levelFull1', |
|
|
"levelFull1se", `levelFull1se', |
|
|
"levelFull2", `levelFull2', |
|
|
"levelFull2se", `levelFull2se', |
|
|
"levelFull3", `levelFull3', |
|
|
"levelFull3se", `levelFull3se', |
|
|
"levelFull4", `levelFull4', |
|
|
"levelFull4se", `levelFull4se' ) |
|
|
tex(frag) |
|
|
dec(3) adec(3) replace |
|
|
|
|
|
|
|
|
|
|
|
reg negSqDiff Full1 Full2 Full3 Full4 qSimple1 qSimple2 qSimple3 qSimple4 if sample == "new", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
lincom qSimple1 + Full1 |
|
|
local levelFull1 = r(estimate) |
|
|
local levelFull1se = r(se) |
|
|
lincom qSimple2 + Full2 |
|
|
local levelFull2 = r(estimate) |
|
|
local levelFull2se = r(se) |
|
|
lincom qSimple3 + Full3 |
|
|
local levelFull3 = r(estimate) |
|
|
local levelFull3se = r(se) |
|
|
lincom qSimple4 + Full4 |
|
|
local levelFull4 = r(estimate) |
|
|
local levelFull4se = r(se) |
|
|
outreg2 using "tables/finCompAggregationSq.tex", |
|
|
addstat( "subj", `subj', |
|
|
"levelFull1", `levelFull1', |
|
|
"levelFull1se", `levelFull1se', |
|
|
"levelFull2", `levelFull2', |
|
|
"levelFull2se", `levelFull2se', |
|
|
"levelFull3", `levelFull3', |
|
|
"levelFull3se", `levelFull3se', |
|
|
"levelFull4", `levelFull4', |
|
|
"levelFull4se", `levelFull4se' ) |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
|
|
|
restore |
|
|
} |
|
|
|
|
|
|
|
|
if 1 { |
|
|
|
|
|
cap gen negAbsDiff = -absDiff |
|
|
|
|
|
reg score_compounding Rule72 Rhetoric Full Control if tag == 1 & sample == "old", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
outreg2 using "tables/mechanisms1.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) replace |
|
|
|
|
|
reg score_indexing Rule72 Rhetoric Full Control if tag == 1 & sample == "old", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
outreg2 using "tables/mechanisms1.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg discount_framed Rule72 Rhetoric Full Control if sample == "old", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
outreg2 using "tables/mechanisms1.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
reg discount_unframed Rule72 Rhetoric Full Control if sample == "old", nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
test Rule72 == Control |
|
|
local pRule72 = r(p) |
|
|
test Rhetoric == Control |
|
|
local pRhetoric = r(p) |
|
|
outreg2 using "tables/mechanisms1.tex", |
|
|
addstat("subj", `subj', "pFull", `pFull', "pRule72", `pRule72', "pRhetoric", `pRhetoric') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if 1 { |
|
|
|
|
|
gen flAll3 = fl1 * fl2 * fl3 |
|
|
gen flAll5 = flAll3 * fl4 * fl5 |
|
|
|
|
|
postfile demo str16 var float Control Full Rule72 Rhetoric fullNew contNew pOld pNew using "data/demographics.dta", replace |
|
|
|
|
|
local varlist = "fl1 fl2 fl3 fl4 fl5 flAll3 flAll5 gender age income afram asian caucasian hispanic other lessThanHighSchool highSchool voc someCollege college graduate fullTime partTime married widowed divorced never_married rural urbanSuburban hh1 hh2 hh3 hh4 ownStocks" |
|
|
foreach var in `varlist' { |
|
|
|
|
|
|
|
|
if ("`var'" == "age" | "`var'" == "income" ) { |
|
|
qreg `var' fullNew if tag == 1 & sample == "new" |
|
|
cap test fullNew == 0 |
|
|
local pNew = r(p) |
|
|
local fullNew = _b[fullNew] + _b[_cons] |
|
|
local contNew = _b[_cons] |
|
|
qreg `var' Full Rule72 Rhetoric if tag == 1 & sample == "old" |
|
|
cap test Full == Rule72 == Rhetoric == 0 |
|
|
local pOld = r(p) |
|
|
local Full = _b[_cons] + _b[Full] |
|
|
local Rule72 = _b[_cons] + _b[Rule72] |
|
|
local Rhetoric = _b[_cons] + _b[Rhetoric] |
|
|
post demo ("`var'") (_b[_cons]) (`Full') (`Rule72') (`Rhetoric') (`fullNew') (`contNew') (`pOld') (`pNew') |
|
|
} |
|
|
else { |
|
|
reg `var' fullNew contNew if tag == 1 & sample == "new", nocons |
|
|
cap test fullNew == contNew |
|
|
local pNew = r(p) |
|
|
local fullNew = _b[fullNew] |
|
|
local contNew = _b[contNew] |
|
|
reg `var' Control Full Rule72 Rhetoric if tag == 1 & sample == "old", nocons |
|
|
cap test Control == Full == Rule72 == Rhetoric |
|
|
local pOld = r(p) |
|
|
post demo ("`var'") (_b[Control]) (_b[Full]) (_b[Rule72]) (_b[Rhetoric]) (`fullNew') (`contNew') (`pOld') (`pNew') |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
count if Control == 1 & tag == 1 |
|
|
local nCont = r(N) |
|
|
count if Full == 1 & tag == 1 |
|
|
local nFull = r(N) |
|
|
count if Rule72 == 1 & tag == 1 |
|
|
local nRule72 = r(N) |
|
|
count if Rhetoric == 1 & tag == 1 |
|
|
local nRhetoric = r(N) |
|
|
count if fullNew == 1 & tag == 1 |
|
|
local nfullNew = r(N) |
|
|
count if contNew == 1 & tag == 1 |
|
|
local ncontNew = r(N) |
|
|
|
|
|
post demo ("N") (`nCont') (`nFull') (`nRule72') (`nRhetoric') (`nfullNew') (`ncontNew') (.) (.) |
|
|
|
|
|
|
|
|
postclose demo |
|
|
|
|
|
preserve |
|
|
clear |
|
|
use "data/demographics.dta" |
|
|
format %9.2f Full Control Rule72 Rhetoric fullNew contNew pOld pNew |
|
|
order var Full Control Rule72 Rhetoric pOld fullNew contNew pNew |
|
|
outsheet using "tables/demographicsNew.tex", delimiter("&") nonames replace |
|
|
restore |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if 1 { |
|
|
|
|
|
cap gen negAbsDiff = -absDiff |
|
|
local controls = "fl1 fl2 fl3 fl4 fl5 gender age income afram asian caucasian hispanic other lessThanHighSchool highSchool voc someCollege college graduate fullTime partTime married widowed divorced never_married rural urbanSuburban hh1 hh2 hh3 hh4 ownStocks" |
|
|
local treatments = "fullN Full Control Rule72 Rhetoric" |
|
|
|
|
|
reg score_compounding `treatments' `controls' if tag == 1, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
outreg2 using "tables/demoControl.tex", |
|
|
keep(`treatments') |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) replace |
|
|
|
|
|
reg score_indexing `treatments' `controls' if tag == 1, nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
outreg2 using "tables/demoControl.tex", |
|
|
keep(`treatments') |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg discount_framed `treatments' `controls' , nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
outreg2 using "tables/demoControl.tex", |
|
|
keep(`treatments') |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
reg discount_unframed `treatments' `controls' , nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
outreg2 using "tables/demoControl.tex", |
|
|
keep(`treatments') |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
reg negAbsDiff `treatments' `controls' , nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
outreg2 using "tables/demoControl.tex", |
|
|
keep(`treatments') |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
cap drop correctionFactor |
|
|
bysort id delay: egen correctionFactor = mean(discount_unframed) |
|
|
replace correctionFactor = 1 / correctionFactor |
|
|
|
|
|
cap drop finCompAvg |
|
|
cap drop finCompCorr |
|
|
gen finCompCorr = -correctionFactor * absDiff * 100 |
|
|
|
|
|
reg finCompCorr `treatments' `controls' , nocons cl(id) |
|
|
local subj = e(N_clust) |
|
|
test Full == Control |
|
|
local pFull = r(p) |
|
|
outreg2 using "tables/demoControl.tex", |
|
|
keep(`treatments') |
|
|
addstat("subj", `subj', "pFull", `pFull') |
|
|
tex(frag) |
|
|
dec(3) adec(3) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|