作者peasum ()
看板Statistics
标题[程式] stata跑panel data
时间Tue Apr 16 23:47:48 2013
------------------------------------------------------------------------
[软体程式类别]:stata
[程式问题]:跑panel data
[软体熟悉度]:新手
[问题叙述]:
各位好 我是stata的新手..之前有学过一点SPSS
不过查了之後发现比较多人用stata跑panel data
目前是参考这篇教学
http://www.princeton.edu/~otorres/Panel101.pdf
不过还是有些问题想请教大家
我的资料是18个国家 2000年~2012年
country year y x1 x2 x3......x16
1 2000
1 2001
1 2002
. .
. .
1 2012
2 2000
2 2001
.
.
18 2012
资料就大概是上面这样子的!
我目前的步骤就是先将country设虚拟变数
然後输入xtset country year
接着下fixed effect的指令
xtreg y x1 x2...., fe
下random effect的指令
xtreg y x1 x2...., re
目前为止我都有做出来 接下来要用hausman来检定哪个较适合
我输入 xtreg y x1 x2...., fe
estimates store fixed
xtreg y x1 x2...., re
estimates store random
hausman fixed random
结果出现
Note: the rank of the differenced variance matrix (11) does not equal the number
of coefficients being tested (15); 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.
请问这是甚麽意思?
而且最下面的结果是 Prob>chi2 = 0.2279
(V_b-V_B is not positive definite)
数字上来看的话是用用REM 但是下面的括号是叫我用FEM吗?
觉得出来的结果好像不太理想..
所以想请问神人们这到底是甚麽意思~~~~然後我所做的步骤对吗?
谢谢大家了!!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 111.255.23.192