楼主: 饼哥
25731 22

[学习心得] stata操作F值缺失问题 [推广有奖]

21
皮皮虾GOGO 发表于 2023-12-25 21:09:52
樽酒离颜 发表于 2020-6-15 20:03
感谢楼主,我把这一条删除之后就有结果了
你怎知道要删哪个啊?

22
1004_4043 发表于 2024-8-12 12:49:58
根据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方差矩阵用于计算稳健方差矩阵,因此后者也是奇异的。

23
zx169584 学生认证  发表于 2025-2-11 23:43:32
朋友们,看看这个,也许可以解决
https://blog.csdn.net/weixin_45920416/article/details/121763562

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

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