全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
5472 2
2012-08-14
在引力模型里,我运行完命令输出结果(从Stata到Word)时有一个问题。我怎样才能忽略其他变量,而只输出显示fta_1,fta_2和fta_3这三个变量。

xtreg ln_export_total ln_gdpi ln_gdpj ln_popi ln_popj ln_dist language adjacency fta_1 fta_2 fta_3, robust fe
est store m1
xtreg ln_export_total ln_gdpi ln_gdpj ln_popi ln_popj ln_dist language adjacency fta_1 fta_2 fta_3 i.year, robust fe
est store m2

/*logout*/
logout, save(mylogout) word replace fix(2):     ///
esttab m1 m2, mtitle(M1(FE) M2(FE_year)) ///
b(%6.3f) se(%6.2f)                  ///
star(* 0.1 ** 0.05 *** 0.01)        ///
scalar(r2 r2_a N) compress nogap

在logout这一组命令里,需要做什么补充,才能只输出fta_1,fta_2和fta_3。
多谢。
二维码

扫码加我 拉你入群

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

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

全部回复
2012-8-14 17:41:09
*Example 8. Drop/keep/order variables


  *  Specifying a varlist can be convenient to limit the output table to only the essential
  *  coefficients.  For example, we may want to control for the influence of dummy variables, but not
  *  report their estimated coefficients.


    sysuse auto, clear
    tab rep78, gen(repair)
    regress mpg foreign weight repair1-repair4
    outreg2 weight foreign using myfile, drop(repair*)

  *  Alternatively, keep( ) and drop( ) can be used to control the displayed variables. Use nocons to     drop constants.

    outreg2 using myfile, drop(repair*) replace
    outreg2 using myfile, keep(mpg foreign)
    outreg2 using myfile, nocons
    seeout



二维码

扫码加我 拉你入群

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

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

2018-1-30 14:08:18
蓝色 发表于 2012-8-14 17:41
*Example 8. Drop/keep/order variables
请问如果要合并显示结果怎么办,每次回归都要drop repair吗?还是在outreg2的时候一次把所有回归的drop掉?
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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