全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
18701 12
2011-01-28
情况是这样的,

跑一个有虚拟变量的回归,然后用outreg2 或者esttab报告结果,比如用这两个命令生成excel的结果。
自然在excel的结果中有有关虚拟变量的结果。但是在金融中,其实我们虽然回归方程要加虚拟变量,但是结果不用报告虚拟变量的结果。

问题:在用outreg或者esttab的时候,加入什么option,结果不用报告虚拟变量的结果。
二维码

扫码加我 拉你入群

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

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

全部回复
2011-1-31 00:52:33
outreg2..., drop() replace?
二维码

扫码加我 拉你入群

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

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

2011-1-31 14:54:28
是的啊,help里面有介绍这个选项的


        +-------------------------+
    ----+ Equations and Variables +---------------------------------------------------------

    drop(varlist) Drop these variables. Do not include the dependent variable in this list.

    keep(varlist) Keep and report these variables.

    eqdrop(eqlist) Drop these equations from the table

    eqkeep(eqlist) Keep and report these equations.

    sortvar(varlist) Sort and order variables; non-existent variable names are ignored.

    groupvar(names) Sort and order variable; non-existent names are inserted as super-rows
        or row-heading.
二维码

扫码加我 拉你入群

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

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

2011-2-9 12:40:44
我本来也是觉得加入drop()就可以了,尝试了简单的例子也能实现功能。
但是
outreg2 [eq1 eq2 eq3 eq4 eq5 eq6 eq7 eq8 eq9 eq10] using ..\result\tab01.xls, replace tstat tdec(1) rdec(2) adjr2 drop(dummy*)
这是我的程序语句,这个地方drop(dummy*)不起作用
二维码

扫码加我 拉你入群

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

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

2011-2-9 15:39:00
________________________________outreg2模板_________________________________  
      outreg2 [m1 m2 m3] using tab01, word replace        ///
              title("表1: 美国妇女工资决定因素估计结果")  ///   // (T1)
              drop(d_occu*) sortvar(married hours)        ///   // (T2)
              tdec(2) rdec(3)  adjr2 e(F)                 ///   // (T3)
              nonote                                      ///   // (T4)
              addnote("注:(1)***,**,*分别表示在1%,5%和10%水平上显著;",  ///
                          "(2)括号中为标准误;",                          ///
                          "(3)其它注释语句。")   
    *_____________________________________________________________________

引用初级教程可见里的模板,应该drop()就可以了,是不是要调整一下选项的顺序?不妨试试?
二维码

扫码加我 拉你入群

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

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

2011-2-9 16:32:34
运行一个例子就知道能不能了啊


sysuse auto,clear
        
tab trunk,gen(dumy)
        
regress mpg foreign weight headroom  length turn displacement dumy*
est store Full

regress mpg foreign weight headroom dumy*
est store Restricted1

regress mpg foreign weight dumy*
est store Restricted2

outreg2 [Full Restricted1 Restricted2]  using d:\temp\myfile,  drop(dumy*) word replace
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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