全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
893 5
2021-11-03
不太懂
附件列表
微信截图_20211103170911.png

原图尺寸 131.42 KB

微信截图_20211103170911.png

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2021-11-3 18:39:25
应该是自己手动调的
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2021-11-5 13:17:26
这个很简单啊,不就是做个均值,标准差的输出表格吗,sum2docx就可以实现,然后调整一下就行

  sysuse auto, clear

    Report summary statistics for variable mpg weight length rep78 and foreign

    sum2docx mpg weight length rep78 foreign using d:/temp1.docx, replace
        stats(N mean(%9.2f) sd min(%9.0g) median(%9.0g) max(%9.0g))

    Add table title

    sum2docx mpg weight length rep78 foreign using d:/temp2.docx, replace
        stats(N mean sd min median max) title("this is the summary
        statistics")

    Add notes

    sum2docx mpg weight length rep78 foreign using d:/temp3.docx, replace
        stats(N mean(%9.2f) sd min(%9.0g) median(%9.0g) max(%9.0g))
        title("this is the summary statistics") note("Data source: auto.dta")

    Use wild card

    sum2docx *n* m?g using d:/temp4.docx, replace stats(N mean(%9.2f) sd
        min(%9.0g) median(%9.0g) max(%9.0g)) title("Table 1: this is the
        summary statistics")

    Use all variables

    drop make

    sum2docx _all using d:/temp5.docx, replace stats(N mean(%9.2f) sd
        min(%9.0g) median(%9.0g) max(%9.0g)) title("Table 1: this is the
        summary statistics")

    Append all files together

    putdocx append d:/temp1.docx d:/temp2.docx d:/temp3.docx d:/temp4.docx
        d:/temp5.docx, saving(d:/mytable.docx,replace)

    We can also use the option append to append the output to an existing file

    sum2docx mpg weight length rep78 foreign using d:/mytable.docx, append
        stats(N mean(%9.2f) sd min(%9.0g) median(%9.0g) max(%9.0g))
        title("this is the summary statistics")

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2021-11-5 14:31:18
sum2docx或者自己调都可以啊,自己调更方便些
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2021-12-15 15:55:14
不太会
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2021-12-15 18:44:55
sum一下就可以,后期自己绘制
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群