我想用CHFS研究城市的某个特征lni对家庭行为lns的影响,主回归是家庭消费对城市特征回归,控制了家庭特征变量和城市固定效应。
reg 家庭行为lns 城市特征lni 家庭特征控制变量 i.city,r遇到两个问题:
①加i.city基准回归结果不汇报F值和对应的P值,不加i.city就汇报F值和对应的P值,这是为什么呢?如果想在控制城市固定效应的情况下汇报F值应该怎么操作?
②使用2sls做工具变量回归,加入城市固定效应2sls就不工作,不加就能正常出结果,为什么呀?
ivreg2 家庭行为lns 家庭特征控制变量 (城市特征lni = 城市特征工具变量lnd ) i.city,r stata就汇报warnin如下:
Warning - endogenous variable(s) collinear with instruments
Vars now exogenous: lni
Warning - collinearities detected
Vars dropped: 177.city lnd
Unable to display first-stage estimates; macro e(first) is missing
Unable to display summary of first-stage estimates; macro e(first) is missing
然后接着出现ols回归结果和下一波warning:
Warning: estimated covariance matrix of moment conditions not of full rank.
overidentification statistic not reported, and standard errors and
model tests should be interpreted with caution.
Possible causes:
singleton dummy variable (dummy with one 1 and N-1 0s or vice versa)
partial option may address problem.
我又用 “ivreg2 家庭行为lns 家庭特征控制变量 (城市特征lni = 城市特征工具变量lnd ) ,r ”(也就是去掉i.city) 输入stata,2sls结果就正常出来了。