楼主: niuniuyiwan
24792 20

[Stata] Stata基础操作:绘图(五) [推广有奖]

11
niuniuyiwan 在职认证  发表于 2015-10-15 11:42:51
  1. sysuse nlsw88, clear
  2. #delimit ;
  3. graph hbox wage,
  4.   over(ind, sort(1)) nooutside
  5.   ytitle("")
  6.   title("Hourly wage, 1988, woman aged 34-46", span)
  7.   subtitle(" ")
  8.   note("Source:  1988 data from NLS, U.S. Dept. of Labor, Bureau of Labor Statistics", span) ;
  9. #delimit cr
复制代码

Graph.png



12
niuniuyiwan 在职认证  发表于 2015-10-15 11:43:45
  1. sysuse nlsw88, clear
  2. #delimit ;
  3. graph hbox wage,
  4.   over(ind, sort(1)) nooutside
  5.   ytitle("")
  6.   by(union,
  7.     title("Hourly wage, 1988, woman aged 34-46", span)
  8.     subtitle(" ")
  9.     note("Source:  1988 data from NLS, U.S. Dept. of Labor, Bureau of Labor Statistics", span) );
  10. #delimit cr
复制代码

Graph.png



13
niuniuyiwan 在职认证  发表于 2015-10-15 11:45:34
  1. sysuse nlsw88, clear
  2. #delimit ;
  3. graph dot wage, over(occ, sort(1))
  4.   ytitle("")
  5.   title("Average hourly wage, 1988, women aged 34-46", span)
  6.   subtitle(" ")
  7.   note("Source:  1988 data from NLS, U.S. Dept. of Labor, Bureau of Labor Statistics", span) ;
  8. #delimit cr
复制代码

Graph.png



14
niuniuyiwan 在职认证  发表于 2015-10-15 11:46:28
  1. sysuse nlsw88, clear
  2. #delimit ;
  3. graph dot (p10) p10=wage (p90) p90=wage,
  4.   over(occ, sort(2))
  5.   legend(label(1 "10th percentile") label(2 "90th percentile"))
  6.   title("10th and 90th percentiles of hourly wage", span)
  7.   subtitle("Women aged 34-46, 1988" " ", span)
  8.   note("Source:  1988 data from NLS, U.S. Dept. of Labor, Bureau of Labor Statistics", span) ;
  9. #delimit cr
复制代码

Graph.png



15
kittojg 发表于 2017-1-2 00:13:00
厉害了,学习

16
shajia2008 在职认证  发表于 2017-1-12 13:01:08
谢谢分享

17
godlegendary 发表于 2017-3-31 12:17:07 来自手机
niuniuyiwan 发表于 2015-7-13 10:47
[/td][/tr]
[/table]

请问复制代码在哪复制?

18
dailiwsw 发表于 2017-6-27 09:08:03
兢兢业业!谢谢啦

19
cch113 在职认证  发表于 2017-7-3 22:46:03
thanks ,正想画个图,多谢

20
捷克皮赛克 发表于 2018-3-2 11:10:25
玄一无相 发表于 2015-10-2 22:42
为什么这个箭头趋势图我实线不了呢,stata13.1
对啊,我想了解一下gen pos 是定趋势的命令吗

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-3-10 06:14