楼主: 套路叔叔
18774 32

[stata资源分享] 非平衡面板数据门限(槛)回归 [推广有奖]

31
17867855252(未真实交易用户) 学生认证  发表于 2024-7-2 15:09:25
代码:xthreg2 RDrate_w  , rx(x1_w) qx(market) thnum(1) trim(0.01) bs(300 ) grid(300)
结果显示:
There exist time-invariant individual(s) (maybe only one obs):  RDrate_w x1_w
                 <istmt>:  3499  thestm2() not found
r(3499);
请问是为什么?

32
tttzw1(未真实交易用户) 发表于 2024-8-14 11:31:21
17867855252 发表于 2024-7-2 15:09
代码:xthreg2 RDrate_w  , rx(x1_w) qx(market) thnum(1) trim(0.01) bs(300 ) grid(300)
结果显示:
T ...
应该是缺少mlib文件

33
聪明的耗子98(未真实交易用户) 发表于 2024-11-3 21:53:27
大佬您好!
我运行代码后,出现的““There exist time-invariant individual(s) (maybe only one obs):  y1 .....”” 。
然后我注意到您说的缩尾问题,因为我的核心解释变量是一个0-1虚拟变量,是不是就会产生类似缩尾的情况,就变成了time-invariant了?  
我后面把这个0-1变量从代码中删掉,就出现了您所列的运行后的第二种情况,即 可运行且跳红码:“There exist time-invariant individual(s) (maybe only one obs):  y q1 q2 ......”;  。
    所以,是不是代码中不能出现0-1变量等类似的虚拟变量?我这种情况还能做门槛效应吗?我的虚拟变量是核心X。
求大家回复!谢谢!

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

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