|
根据stata的解释来看,本质问题是存在某个变量里只有一个非零的观测或者只有一个聚类的观测非零。所以用i.city进行回归的时候,如果数据里这个城市只出现1次,那必然这个城市的虚拟变量只有一个非零观测,要删掉。
Is there a regressor that is nonzero for only 1 observation or for one cluster?
The VCE you have just estimated is not of sufficient rank to perform the model test. This can happen if there is a variable in your model that is nonzero for only 1 observation in the estimation sample. Likewise, it can happen if a variable is nonzero for only one cluster when using the cluster-robust VCE. In such cases the derivative of the sum-of-squares or likelihood function with respect to that variable's parameter is zero for all observations. That implies that the outer-product-of-gradients (OPG) variance matrix is singular. Because the OPG variance matrix is used in computing the robust variance matrix, the latter is therefore singular as well.
是否有一个回归量仅对1个观测值或一个聚类非零?
您刚刚估计的方差-协方差矩阵(VCE)的秩不足以执行模型检验。如果模型中有一个变量在估计样本中仅对1个观测值非零,就会发生这种情况。同样,如果在使用聚类稳健VCE时,一个变量仅对一个聚类非零,也会发生这种情况。在这些情况下,对该变量参数的残差平方和或似然函数的导数对所有观测值都是零。这意味着梯度的外积(OPG)方差矩阵是奇异的。因为OPG方差矩阵用于计算稳健方差矩阵,因此后者也是奇异的。
|