楼主: 黃河泉
134866 237

[面板数据求助] 高维度之固定效果与群聚标准差 Stata 程序   [推广有奖]

221
白桃汽水1111 发表于 2022-1-10 10:32:46
黃河泉 发表于 2021-6-16 09:51
资讯不够,无从回答。
黄老师,我想问一下,就是我用xi:reg y x i.industry i.year (想控制行业和时间)会显示部分行业因为多重共线性问题被 omitted ,这样对结果会有影响吗?

222
黃河泉 在职认证  发表于 2022-1-10 14:35:49
白桃汽水1111 发表于 2022-1-10 10:32
黄老师,我想问一下,就是我用xi:reg y x i.industry i.year (想控制行业和时间)会显示部分行业因为多 ...
这是常遇到的情况,不会影响。

223
白桃汽水1111 发表于 2022-1-10 15:16:12
黃河泉 发表于 2022-1-10 14:35
这是常遇到的情况,不会影响。
谢谢老师

224
问南梦 发表于 2022-3-28 14:03:47 来自手机
黃河泉 发表于 2016-8-6 17:37
就我的个人经验,要跟大家强烈推荐的好用(我最喜欢的 Stata 程序前五名)指令:"reghdfe" (ssc install re ...
谢谢老师分享

225
1920131002 发表于 2022-4-18 21:59:32
黃河泉 发表于 2017-7-26 15:58
-reghdfe- 就是应用于面板数据。甚至是 (由于通常 id 与 industry 有完全共线性)与或应该会一样!
老师,请教您一个问题,在执行 xtreg y x i.year i.industry i.city, fe 这条命令,控制多个固定效应时,显示有些city 被 omitted了,但是最终回归的观测值却并没有减少,回归结果也和reghdfe无差异。请问存在omitted的情况时,还能用xtreg 控制多个固定效应回归吗?谢谢老师!

226
黃河泉 在职认证  发表于 2022-4-19 08:28:13
1920131002 发表于 2022-4-18 21:59
老师,请教您一个问题,在执行 xtreg y x i.year i.industry i.city, fe 这条命令,控制多个固定效应时, ...
控制当然能够控制,只是你的 industry, city 与 个体可能有完全共线性。

227
13315957368 发表于 2022-11-3 10:42:22
老师,您好,这种情况该怎么办
. reghdfe lnimport politicalrelation PCI poliPCI politicalrelation_1 lnGDP_Chin
> a lnGDP_partner lnpatent IPP lndistance,absorb( partner year HS2007 )
(dropped 4 singleton observations)
note: PCI is probably collinear with the fixed effects (all partialled-out valu
> es are close to zero; tol = 1.0e-09)
note: lnGDP_China is probably collinear with the fixed effects (all partialled-
> out values are close to zero; tol = 1.0e-09)
note: IPP is probably collinear with the fixed effects (all partialled-out valu
> es are close to zero; tol = 1.0e-09)
note: lndistance is probably collinear with the fixed effects (all partialled-o
> ut values are close to zero; tol = 1.0e-09)
(MWFE estimator converged in 7 iterations)
note: PCI omitted because of collinearity
note: lnGDP_China omitted because of collinearity
note: IPP omitted because of collinearity
note: lndistance omitted because of collinearity

HDFE Linear regression                            Number of obs   =     19,612
Absorbing 3 HDFE groups                           F(   5,  19424) =       4.12
                                                  Prob > F        =     0.0010
                                                  R-squared       =     0.5633
                                                  Adj R-squared   =     0.5591
                                                  Within R-sq.    =     0.0011
                                                  Root MSE        =     2.6422

------------------------------------------------------------------------------
    lnimport |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
politicalr~n |   .0505123   .1314548     0.38   0.701    -.2071505     .308175
         PCI |          0  (omitted)
     poliPCI |  -.0003493   .0001068    -3.27   0.001    -.0005587   -.0001399
politicalr~1 |   -.120956   .1322047    -0.91   0.360    -.3800886    .1381766
lnGDP_China |          0  (omitted)
lnGDP_part~r |   .4193887   .1663515     2.52   0.012     .0933254     .745452
    lnpatent |   .0655477   .0541719     1.21   0.226     -.040634    .1717293
         IPP |          0  (omitted)
  lndistance |          0  (omitted)
       _cons |   1.103248   4.412079     0.25   0.803    -7.544808    9.751303
------------------------------------------------------------------------------

Absorbed degrees of freedom:
-----------------------------------------------------+
Absorbed FE | Categories  - Redundant  = Num. Coefs |
-------------+---------------------------------------|
     partner |       111           0         111     |
        year |        12           1          11     |
      HS2007 |        62           1          61    ?|
-----------------------------------------------------+
? = number of redundant parameters may be higher

228
黃河泉 在职认证  发表于 2022-11-3 17:00:35
13315957368 发表于 2022-11-3 10:42
老师,您好,这种情况该怎么办
. reghdfe lnimport politicalrelation PCI poliPCI politicalrelation_1  ...
什么怎么办?没系数的 (系数为 0) 都是共线性导致的 (可能跟 partner year HS2007 有关,特别是 year),没有什么好方法!这只有你看得到资料,自己检查一下。

229
kalinda111111 学生认证  发表于 2022-11-4 16:37:15
请问黄老师,我的被解释变量是专利数据,零值较多,可以使用reghdfe做回归吗?谢谢老师解答!

230
kalinda111111 学生认证  发表于 2022-11-4 16:39:09
请问黄老师,我的被解释变量是用专利数据测度,零值较多,可以采用reghdfe做回归吗

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

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