美文网首页stata绘图与估计结果输出
stata -- 回归结果图形输出

stata -- 回归结果图形输出

作者: 古城路揸fit人 | 来源:发表于2019-08-02 19:30 被阅读0次

    回归结果的图形显示在演示文稿和科学文献中变得越来越流行,因为图通常比表格更容易阅读。

    coefplot是一个可以输出多种样式结果外部命令,越来越收欢迎。

    置信区间条形柱状图

    展示子样本的 国产车和外国车 长度系数的影响

    控制了xlabel不显示,去掉彩色风格的外边框,和图例的位置

    sysuse auto, clear
    
    
    regress price mpg trunk length turn  if foreign==0
    estimates store domestic
    
    regress price mpg trunk length turn  if foreign==1
    estimates store foreign
    
    set scheme s1color
    
    coefplot domestic foreign, vertical recast(bar) keep(length) ///
    barwidth(0.25) fcolor(*.5)  graphregion(fcolor(white)) ///
    ciopts(recast(rcap)) citop yline(0) ytitle(Proportion)  legend(posi(11) ring(0) row(2)) xlabel(,nolabel notick) 
    gr_edit plotregion1.style.editstyle boxstyle(linestyle(color(none))) editcopy
    
    效果图

    文献引用

    相关文章

      网友评论

        本文标题:stata -- 回归结果图形输出

        本文链接:https://www.haomeiwen.com/subject/urhrdctx.html