- 1、本文档共60页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
stata初级入门图形课件.ppt
* 《计量经济学软件应用》 * 五、直方图(histogram) 展示连续和分类变量的总体分布情况。 语法1(连续变量): histogram varname [if] [in] [weight] [, [continuous_opts] options] 语法2(分类变量): histogram varname [if] [in] [weight] [, [discrete_opts] options] * 《计量经济学软件应用》 * 选项 连续变量的选项 bin # : set number of bins to # width # :set width of bins to # start # :set lower limit of first bin to # 分类变量的选项 discrete: specify that the data are discrete width # : set width of bins to # start # :set theoretical minimum value to # * 《计量经济学软件应用》 * 菜单: Graphics Histogram * 《计量经济学软件应用》 * 范例:histogram price, bin 20 lpattern dash gap 5 normal xlabel minmax bin 20, start 3291, width 630.75 * 《计量经济学软件应用》 * 六、茎叶图(stem) 数组中的数按位数进行比较,将数的大小基本不变或变化不大的位作为一个主干(茎),将变化大的位的数作为分枝(叶),列在主干的后面。 也能展示变量的数值分布情况。 stem命令 语法: stem varname [if] [in] [, options] * 《计量经济学软件应用》 * 菜单: Statistics Summaries, tables, and tests Distributional plots and tests Stem-and-leaf display * 《计量经济学软件应用》 * 范例:stem price * 《计量经济学软件应用》 * 七、散点图(scatter) 两组数据构成多个坐标点,考察坐标点的分布,判断两变量之间是否存在某种关联或总结坐标点的分布模式。 twoway scatter命令: 语法:[twoway] scatter varlist [if] [in] [weight] [, options] * 《计量经济学软件应用》 * 菜单:Graphics Twoway graph scatter, line, etc. * 《计量经济学软件应用》 * * 《计量经济学软件应用》 * 范例1:sysuse uslifeexp2 twoway scatter le year, sort mcolor black msize medsmall msymbol triangle * 《计量经济学软件应用》 * 范例2: twoway scatter mpg weight if foreign 0, mcolor green msize medsmall msymbol triangle scatter mpg weight if foreign 1, mcolor black msymbol square , ytitle mile age xtitle car weight title mile age and weight of US car * 《计量经济学软件应用》 * 八、线形图(line) 常用于描述变量的时序变化,及变量间某一变量随着另一变量数据变化而发生的变化趋势或关系。 twoway line命令 语法:[twoway] line varlist [if] [in] [, options] * 《计量经济学软件应用》 * 菜单:Graphics Twoway graph scatter, line, etc. * 《计量经济学软件应用》 * 范例1:twoway line le year, sort lpattern dash connect stairstep 范例2:twoway line le year, sort lpattern dash * 《计量经济学软件应用》 * 九、折线连接图(connected line) 其作用基本同线形图。 twoway connected命令 语法:twoway connected varlist [if] [in] [weight] [, sc
文档评论(0)