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

标签:
plotbetacoefplot |
分类: 画图 |
【问题】
现在特流行用图去展示回归系数和置信区间,感觉政治科学尤甚。
大多图都是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)
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)
coefplot domestic || foreign, drop(_cons) xline(0)
coefplot domestic || foreign, yline(0) bycoefs vertical byopts(yrescale)