全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
31208 15
2013-06-29
我用古扎拉蒂教材597页上的例子,用STATA软件做面板数据的固定效应分析:
xtreg c q pf lf,fe   (c是因变量;q pf lf是解释变量)
回车后得到下面的内容:

must specify panelvar; use xtset
r(459);
不知道为什么得不到回归结果呢?
初学者恳请高手的帮助,在这里先谢谢大家~~
二维码

扫码加我 拉你入群

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

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

全部回复
2013-6-29 09:04:44
先要xtset 个体与时间变量。比如个体是id,时间是year
xtset id year
然后运行
xtreg c q pf lf,fe  
二维码

扫码加我 拉你入群

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

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

2013-6-29 09:20:13
楼上正解,要先指定面板的截面和时序,才能使用面板命令。
二维码

扫码加我 拉你入群

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

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

2013-6-29 13:17:54
非常非常感谢二楼的前辈!!!
运行完之后出现了一个Note,请问是什么意思呢,另外我用STATA运行的结果, chi2(2) =  60.87,而书上用Eviews运行的结果是Chi-Sq=49.619,请问这是怎么回事呢??

Note: the rank of the differenced variance matrix (2) does not equal the number of coefficients being tested (3); be sure this is what you
        expect, or there may be problems computing the test.  Examine the output of your estimators for anything unexpected and possibly
        consider scaling your variables so that the coefficients are on a similar scale.

                 ---- Coefficients ----
             |      (b)          (B)            (b-B)     sqrt(diag(V_b-V_B))
             |       fe           re         Difference          S.E.
-------------+----------------------------------------------------------------
           q |     3319023      2288588         1030435          131808
          pf |    .7730708     1.123591       -.3505205               .
          lf |    -3797368     -3084994       -712373.5               .
------------------------------------------------------------------------------
                           b = consistent under Ho and Ha; obtained from xtreg
            B = inconsistent under Ha, efficient under Ho; obtained from xtreg

    Test:  Ho:  difference in coefficients not systematic

                  chi2(2) = (b-B)'[(V_b-V_B)^(-1)](b-B)
                          =       60.87
                Prob>chi2 =      0.0000
                (V_b-V_B is not positive definite)
二维码

扫码加我 拉你入群

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

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

2014-11-22 09:38:43
原假设是随机效应,p值为0,说明该用固定效应吧
二维码

扫码加我 拉你入群

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

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

2015-5-3 01:20:31
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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