一、命令下载并配置
(1)下载地址:http://www.princeton.edu/~honore/stata/index.html,下载pantob.zip文件
(2)解压,将后缀为.ado和.sthlp文件放入stata安装目录下的ado中的p文件夹中,后缀为.mlib放入ado中的l文件夹中。重新启动stata就可以用了。
二、使用命令
固定效应:
pantob y x Z(控制变量) day2-day30(时间虚拟变量,不能直接i.day) pro_id(个体变量)
est store fe
随机效应:
xttobit y x Z day2-day30(时间虚拟变量,能直接i.day),ll(下限,比如0)
或者:xttobit y x Z day2-day30(能直接i.day),ul(上限)
est store re
Hausman检验结果
hausman fe re,equation(1:1)
三、感谢以下同学的分享,参考资料有限,因此理解也有限,也欢迎各位老师同学不吝赐教!
https://bbs.pinggu.org/thread-5967957-1-1.html?ivk_sa=1024320u
https://bbs.pinggu.org/forum.php?mod=viewthread&tid=8143229&ordertype=1


雷达卡




京公网安备 11010802022788号







