stata:应用stata学习计量经济学原理 practice 2 stata绘图基础
生活随笔
收集整理的這篇文章主要介紹了
stata:应用stata学习计量经济学原理 practice 2 stata绘图基础
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
應(yīng)用stata學(xué)習(xí)計量經(jīng)濟(jì)學(xué)原理
- Practice 2
Practice 2
Another vision
*Q1 sysuse uslifeexp, clearscatter le year,connect(l) msymbol(i) * connect(1): connect with straight lines * msymbol(i): remove the pointssu le *check the range of y-axis su year *check the range of x-axisscatter le year, ylabel(35(5)80) xlabel(1900(10)2000) xtitle(year) ytitle(life expectancy) title(1900-1999 US life expectancy)twoway(scatter le_male year)(scatter le_female year), title(1900-1999 US life expectancy for male and female) xtitle(year) ytitle(life expectancy) legend(ring(0) cols(1) position(5)) *or scatter le_male year||scatter le_female year,title(1900-1999 US life expectancy for male and female) xtitle(year) ytitle(life expectancy) legend(ring(0) cols(1) position(5)) * ring(0): represents the legend be moved inside the plot * cols(1): only one columns of legend * position(5): the legend will be moved to 5 o'clock position*Q2 use wage.dta ,clear twoway(scatter educ wage if female == 1)(scatter exper wage if female == 1) * by defaulttwoway /// (scatter educ wage if female == 1, /// msymbol(O) mcolor(green) msize(medium) mstyle(p9)) /// (scatter exper wage if female == 1, /// msymbol(X) mcolor(blue) msize(medium) mstyle(p8)) * msymbol:散點形狀 * mcolor: 散點顏色 * msize: 散點大小 * mstyle: 散點整體樣式總結(jié)
以上是生活随笔為你收集整理的stata:应用stata学习计量经济学原理 practice 2 stata绘图基础的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Mybatis批量新增
- 下一篇: 通信原理学习笔记3-1:数字通信系统概述