全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件
14771 4
2021-02-03
ivregress 2sls 进行回归时,如何导出第一第二阶段的结果?
二维码

扫码加我 拉你入群

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

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

全部回复
2021-2-3 04:43:55



【方法】

ivregress2

ivregress2 provides a fast and easy way to export both the first-stage and the second-stage results similar to ivregress, on which it is based.

【例子】

    * ivregress to be duplicated

    sysuse auto, clear

    ivregress 2sls mpg weight (length=displacement), first

    * export them (with table-making programs of your choice)

    ivregress2 2sls mpg weight (length=displacement), first

    est restore first

    outreg2 using myfile, cttop(first) replace

    est restore second

    outreg2 using myfile, cttop(second) excel

    * use version control to make it future-proof against Stata 13 and beyond

    version 12: ivregress2 2sls mpg weight (length=displacement), first


二维码

扫码加我 拉你入群

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

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

2021-8-14 17:16:07
购房契税22291 发表于 2021-2-3 04:43
【方法】ivregress2ivregress2 provides a fast and easy way to export both the first-stage and the sec ...
谢谢分享
二维码

扫码加我 拉你入群

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

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

2022-7-18 18:44:02
购房契税22291 发表于 2021-2-3 04:43
【方法】ivregress2ivregress2 provides a fast and easy way to export both the first-stage and the sec ...
显示. est restore first
estimation result first not found
怎么回事呢
二维码

扫码加我 拉你入群

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

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

2023-2-16 10:16:36
MerryChris 发表于 2022-7-18 18:44
显示. est restore first
estimation result first not found
怎么回事呢
你换成 est store first 试试
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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