全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 统计软件培训班VIP答疑区
2077 2
2012-01-16

我有两个回归方程,方程1,与方程2,两个方程具有相同的解释变量,不同的被解释变量,我想考察其中一个解释变量,如x1在两个方程中,哪个系数更大?

其如何实现?

我使用的方法如下:
reg lroyal ipr lpergdp,robust

est store ab_roy

reg lfdi ipr lpergdp,robust

est store ab_fdi

test [lroyal]ipr=[lfdi]ipr

系统显示:

equation [lroyal] not found

test [ab_roy]ipr=[ab_fdi]ipr

equation [ab_roy] not found

原因何在?

我看help文件说明,其使用的是SUR回归?但它应该只是一个特例。

二维码

扫码加我 拉你入群

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

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

全部回复
2012-1-18 11:14:08
try this:

  *-Q4: Comparing Regression Coefficients Across Groups using Suest    ***
  *     http://www.ats.ucla.edu/stat/stata/code/suest.htm
    * e.g.  use http://www.ats.ucla.edu/stat/stata/faq/compreg3
          use compreg3, clear
          regress weight height if age==1
      est store age1
          regress weight height if age==2
          est store age2
          regress weight height if age==3
          est store age3
          
      suest age1 age2 age3

          test [age1_mean]height=[age2_mean]height
          
          test [age2_mean]height=[age3_mean]height, accum
二维码

扫码加我 拉你入群

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

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

2012-1-19 23:09:34
谢谢。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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