黃河泉 发表于 2023-4-20 18:47 
不太可能吧?你的资料是否有误?
我的资料就是2000-2020年的A股制造业上市公司非平衡面板数据,回归代码如下。BA即为企业年龄,提示我BA is probably collinear with the fixed effects。id是企业代码,hid是行业代码,如果不控制企业固定效应的话,企业年龄就没有被omitted。很奇怪!
reghdfe TFP_LP ytreat BA N O P Q R size ownership,absorb(id hid year year_hid) vce(cluster id)
(dropped 149 singleton observations)
note: BA is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
(MWFE estimator converged in 50 iterations)
note: BA omitted because of collinearity
HDFE Linear regression Number of obs = 21,143
Absorbing 4 HDFE groups F( 8, 1995) = 123.96
Statistics robust to heteroskedasticity Prob > F = 0.0000
R-squared = 0.9064
Adj R-squared = 0.8926
Within R-sq. = 0.3624
Number of clusters (id) = 1,996 Root MSE = 0.3251
(Std. Err. adjusted for 1996 clusters in id)
------------------------------------------------------------------------------
| Robust
TFP_LP | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
ytreat | .0692199 .0227731 3.04 0.002 .0245583 .1138814
BA | 0 (omitted)
N | .7149225 .0634778 11.26 0.000 .5904328 .8394121
O | 1.439384 .1055132 13.64 0.000 1.232457 1.646312
P | .0144146 .0071223 2.02 0.043 .0004467 .0283824
Q | .7562673 .0563977 13.41 0.000 .6456627 .8668718
R | .1207034 .0646236 1.87 0.062 -.0060334 .2474402
size | .1496874 .0550831 2.72 0.007 .041661 .2577138
ownership | -.0059335 .0070947 -0.84 0.403 -.0198474 .0079804
_cons | 7.143902 .0460337 155.19 0.000 7.053623 7.234181
------------------------------------------------------------------------------
Absorbed degrees of freedom:
-----------------------------------------------------+
Absorbed FE | Categories - Redundant = Num. Coefs |
-------------+---------------------------------------|
id | 1996 1996 0 *|
hid | 49 0 49 |
year | 21 1 20 |
year_hid | 695 49 646 ?|
-----------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation