新浪博客

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

2013-08-27 09:52阅读:
【问题】
现在特流行用图去展示回归系数和置信区间,感觉政治科学尤甚。
大多图都是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)
Tips <wbr>140: <wbr>coefplot <wbr>图示回归系数和置信区间


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)
Tips <wbr>140: <wbr>coefplot <wbr>图示回归系数和置信区间
coefplot domestic || foreign, drop(_cons) xline(0)
Tips <wbr>140: <wbr>coefplot <wbr>图示回归系数和置信区间
coefplot domestic || foreign, yline(0) bycoefs vertical byopts(yrescale)
Tips <wbr>140: <wbr>coefplot <wbr>图示回归系数和置信区间

我的更多文章

下载客户端阅读体验更佳

APP专享