楼主: 淡「凡惜
34209 17

[面板数据求助] 面板数据的个体固定效应模型 [推广有奖]

  • 2关注
  • 2粉丝

硕士生

18%

还不是VIP/贵宾

-

威望
0
论坛币
1 个
通用积分
1.0002
学术水平
1 点
热心指数
1 点
信用等级
0 点
经验
715 点
帖子
37
精华
0
在线时间
193 小时
注册时间
2011-11-29
最后登录
2019-11-7

楼主
淡「凡惜 发表于 2014-11-20 15:00:52 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
现在在学stata中面板数据处理这快的东西,想要做一下无固定效应模型、个体固定效应模型、时间固定效应模型和双向固定效应模型想请教一下论坛里的大虾们,无面板数据的无固定效应模型是不是就是随机效应模型啊?
还有就是在做个体固定效应模型的时候,得到的结果如下,看不懂,不知道命令有没有错,麻烦谁能帮我看一下

. xtreg x p nights aincome age education i.id, fe robust
note: 2.id omitted because of collinearity
note: 3.id omitted because of collinearity
note: 4.id omitted because of collinearity
note: 5.id omitted because of collinearity
note: 6.id omitted because of collinearity
note: 7.id omitted because of collinearity
note: 8.id omitted because of collinearity
note: 9.id omitted because of collinearity
note: 10.id omitted because of collinearity
note: 11.id omitted because of collinearity
note: 12.id omitted because of collinearity
note: 13.id omitted because of collinearity
note: 14.id omitted because of collinearity
note: 15.id omitted because of collinearity
note: 16.id omitted because of collinearity
note: 17.id omitted because of collinearity
note: 18.id omitted because of collinearity
note: 19.id omitted because of collinearity
note: 20.id omitted because of collinearity
note: 21.id omitted because of collinearity
note: 22.id omitted because of collinearity
note: 23.id omitted because of collinearity
note: 24.id omitted because of collinearity
note: 25.id omitted because of collinearity
note: 26.id omitted because of collinearity
note: 27.id omitted because of collinearity
note: 28.id omitted because of collinearity
note: 29.id omitted because of collinearity
note: 30.id omitted because of collinearity
note: 31.id omitted because of collinearity
note: 32.id omitted because of collinearity
note: 33.id omitted because of collinearity
note: 34.id omitted because of collinearity
note: 35.id omitted because of collinearity
note: 36.id omitted because of collinearity
note: 37.id omitted because of collinearity
note: 38.id omitted because of collinearity
note: 39.id omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       312
Group variable: id                              Number of groups   =        39

R-sq:  within  = 0.0639                         Obs per group: min =         8
       between = 0.0524                                        avg =       8.0
       overall = 0.0469                                        max =         8

                                                F(5,38)            =      3.15
corr(u_i, Xb)  = 0.1186                         Prob > F           =    0.0178

                                    (Std. Err. adjusted for 39 clusters in id)
------------------------------------------------------------------------------
             |               Robust
           x |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
           p |   -.000778   .0010395    -0.75   0.459    -.0028824    .0013263
      nights |  -.0184407   .1534497    -0.12   0.905    -.3290833    .2922019
     aincome |   .0035044    .001795     1.95   0.058    -.0001295    .0071382
         age |  -.4237238   .4272794    -0.99   0.328    -1.288706    .4412581
   education |  -.9090608   1.153993    -0.79   0.436    -3.245198    1.427076
             |
          id |
          2  |          0  (omitted)
          3  |          0  (omitted)
          4  |          0  (omitted)
          5  |          0  (omitted)
          6  |          0  (omitted)
          7  |          0  (omitted)
          8  |          0  (omitted)
          9  |          0  (omitted)
         10  |          0  (omitted)
         11  |          0  (omitted)
         12  |          0  (omitted)
         13  |          0  (omitted)
         14  |          0  (omitted)
         15  |          0  (omitted)
         16  |          0  (omitted)
         17  |          0  (omitted)
         18  |          0  (omitted)
         19  |          0  (omitted)
         20  |          0  (omitted)
         21  |          0  (omitted)
         22  |          0  (omitted)
         23  |          0  (omitted)
         24  |          0  (omitted)
         25  |          0  (omitted)
         26  |          0  (omitted)
         27  |          0  (omitted)
         28  |          0  (omitted)
         29  |          0  (omitted)
         30  |          0  (omitted)
         31  |          0  (omitted)
         32  |          0  (omitted)
         33  |          0  (omitted)
         34  |          0  (omitted)
         35  |          0  (omitted)
         36  |          0  (omitted)
         37  |          0  (omitted)
         38  |          0  (omitted)
         39  |          0  (omitted)
             |
       _cons |   69.32457   27.17312     2.55   0.015     14.31548    124.3337
-------------+----------------------------------------------------------------
     sigma_u |  28.137014
     sigma_e |  7.0153835
         rho |   .9414732   (fraction of variance due to u_i)
------------------------------------------------------------------------------

reg x p nights aincome age education i.id
xtreg x p nights aincome age education i.id, fe robust
这两条命令的区别是什么呢?
还有一个问题就是
xtreg x p nights aincome age education yr*, fe是双向的固定效应模型,那如何做仅仅是时间固定效应模型的回归呢?
望高人解答
.



二维码

扫码加我 拉你入群

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

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

关键词:固定效应模型 个体固定效应 固定效应 面板数据 Collinearity education because 模型

沙发
garlic123 发表于 2014-11-20 17:33:50
数据多重共线性,命令的话help xtreg可好
已有 1 人评分经验 热心指数 收起 理由
crystal8832 + 5 + 1 热心帮助其他会员

总评分: 经验 + 5  热心指数 + 1   查看全部评分

藤椅
crystal8832 学生认证  发表于 2014-11-20 23:37:51
把你回归的命令里的iid去掉,你这个是重复,fe估计就是用的虚拟变量,要么用reg+i.id,要么用xtreg +fe,时间固定效应模型意义不大,它表示的是时间行的异质性,其原理就是构造时间虚拟变量。

板凳
淡「凡惜 发表于 2014-11-23 07:53:33
crystal8832 发表于 2014-11-20 23:37
把你回归的命令里的iid去掉,你这个是重复,fe估计就是用的虚拟变量,要么用reg+i.id,要么用xtreg +fe,时 ...
谢谢,我明白了。请问可否告知时间固定效应的回归命令应该是什么,导师要求个体固定、时间固定以及双向固定都要做啊~~~拜托

报纸
wisdommingli 发表于 2015-6-13 09:28:09
淡「凡惜 发表于 2014-11-23 07:53
谢谢,我明白了。请问可否告知时间固定效应的回归命令应该是什么,导师要求个体固定、时间固定以及双向固 ...
. xtreg x p nights aincome age education i.id
或者. xtreg x p nights aincome age education, fe

地板
jinghua0126 发表于 2015-6-17 18:35:44
回归后的结果如何解释呢?还有为什么第一个个体(如省际面板数据中第一个省份)的数据被删除掉了呢?谢谢,望高人指点!!

7
KDWestbrook00 学生认证  发表于 2016-3-8 09:03:36
jinghua0126 发表于 2015-6-17 18:35
回归后的结果如何解释呢?还有为什么第一个个体(如省际面板数据中第一个省份)的数据被删除掉了呢?谢谢, ...
为了防止多重共线性,必须删除一个个体变量

8
jinghua0126 发表于 2016-3-8 13:46:50
KDWestbrook00 发表于 2016-3-8 09:03
为了防止多重共线性,必须删除一个个体变量
非常感谢!

9
宛如青空 发表于 2017-3-29 11:28:57
我做贸易引力模型的时候,豪斯曼检验适合做固定效应模型,但STATA自动将距离变量删除了,但这是很重要的变量,该怎么办

10
lightningqing 发表于 2019-4-23 13:07:46
宛如青空 发表于 2017-3-29 11:28
我做贸易引力模型的时候,豪斯曼检验适合做固定效应模型,但STATA自动将距离变量删除了,但这是很重要的变量 ...
距离不随时间的变化而变化,固定效应模型不能用这种变量,我之前做的时候还有共同边界,都不行。

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-9 08:30