加载中…
个人资料
Stata
Stata
  • 博客等级:
  • 博客积分:0
  • 博客访问:7,194
  • 关注人气:852
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

Tips 140: coefplot 图示回归系数和置信区间

(2013-08-27 09:52:05)
标签:

plotbeta

coefplot

分类: 画图

【问题】

现在特流行用图去展示回归系数和置信区间,感觉政治科学尤甚。

大多图都是R里面画的,Stata的有无相关命令?

【方法】

coefplot

coefplot -- Plotting regression coefficients and other results

详细说明:

http://ideas.repec.org/p/bss/wpaper/1.html

【例子】

sysuse auto

regress price mpg headroom trunk length turn

coefplot, drop(_cons) xline(0)

 http://s6/mw690/629bb758tx6CaYa6tJHf5&690140: coefplot 图示回归系数和置信区间" TITLE="Tips 140: coefplot 图示回归系数和置信区间" />


        

regress price mpg headroom trunk length turn if foreign==0

estimates store domestic

regress price mpg headroom trunk length turn if foreign==1

estimates store foreign

coefplot domestic foreign, drop(_cons) xline(0)

       http://s4/mw690/629bb758tx6CaYaRTk7b3&690140: coefplot 图示回归系数和置信区间" TITLE="Tips 140: coefplot 图示回归系数和置信区间" />


coefplot domestic || foreign, drop(_cons) xline(0)

       http://s10/mw690/629bb758tx6CaYbDJQBe9&690140: coefplot 图示回归系数和置信区间" TITLE="Tips 140: coefplot 图示回归系数和置信区间" />


coefplot domestic || foreign, yline(0) bycoefs vertical byopts(yrescale)

 http://s5/mw690/629bb758tx6CaYcxiio74&690140: coefplot 图示回归系数和置信区间" TITLE="Tips 140: coefplot 图示回归系数和置信区间" />


0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有