1 Star 1 Fork 0

Tiger-Leo/Ludwig-Bruederl-ASR2018

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Figure1.do 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
Tiger-Leo 提交于 2021-07-15 01:20 . first commit
//Figure 1a
clear
set obs 5
ge Time=_n-1
ge Wage1=.5*Time if inrange(Time,1,3)
ge Wage2=.5*Time+.5 if inrange(Time,2,3)
ge Wage3=Wage1+1*(Time-2) if inrange(Time,2,3)
recode Time 0=.75 4=3.25
line Wage3 Wage2 Wage1 Time, lpattern(dash longdash solid) lwidth(thick thick thick) lcolor(black black black) ///
ylab(0(1)3, noticks nolabels) xlab(.75 1(1)3 3.25, noticks nolabels) xline(2) ///
ytitle("Wage", size(large)) xtitle("Work" "experience", size(large)) ///
legend(ring(0) pos(11) col(1) order(3 "Never-married man" - "" - "Married man with" 1 "Specialization" 2 "Work effort," - "Domestication," - "Employer favoritism") size(large)) ///
subtitle("a. Causal effects", size(vlarge)) text(0 2 "Entry to" "marriage", place(s) size(large))
//Figure 1b
clear
set obs 5
ge Time=_n-1
ge Wage1=.5*Time if inrange(Time,1,3)
ge Wage2=.5*Time+.5 if inrange(Time,1,3)
ge Wage3=-.75+1*Time if inrange(Time,1,3)
recode Time 0=.75 4=3.25
line Wage3 Wage2 Wage1 Time, lpattern(dash longdash solid) lwidth(thick thick thick) lcolor(black black black) ///
ylab(0(1)3, noticks nolabels) xlab(.75 1(1)3 3.25, noticks nolabels) xline(2) ///
ytitle("Wage", size(large)) xtitle("Work" "experience", size(large)) ///
legend(ring(0) pos(11) col(1) order(3 "Never-married man" - "" - "Married man with" 2 "Selection on wage level" 1 "Selection on wage growth" /*- "(Promising young man)"*/) size(large)) ///
subtitle("b. Spurious effects", size(vlarge)) text(0 2 "Entry to" "marriage", place(s) size(large))
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Tiger-Leo/ludwig-bruederl-asr2018.git
git@gitee.com:Tiger-Leo/ludwig-bruederl-asr2018.git
Tiger-Leo
ludwig-bruederl-asr2018
Ludwig-Bruederl-ASR2018
master

搜索帮助