楼主: chelseal
16442 51

[回归分析求助] Tobit FE——Pantob回归 [推广有奖]

  • 0关注
  • 1粉丝

硕士生

58%

还不是VIP/贵宾

-

威望
0
论坛币
2222 个
通用积分
1.4800
学术水平
1 点
热心指数
3 点
信用等级
5 点
经验
354 点
帖子
81
精华
0
在线时间
242 小时
注册时间
2011-9-3
最后登录
2020-3-6

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
我正在跑pantob这个回归(就是Tobit 的FE),跑了一整个下午+到现在那多小菊花还在转(前天跑过也是这种情况)。。。
求问各位大神这是什么问题?
另:被解释变量为HHI,解释变量为size MB profitability dividend_payer tang CF_volatility
非常感谢!
QQ截图20140419201814.jpg
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Tobit Ant bit Volatility Dividend 菊花

沙发
wxl1117 发表于 2015-5-1 00:22:16 |只看作者 |坛友微信交流群
请问您这个问题解决了么?我安装了该命令,但怎么都运行改不了。。。

使用道具

藤椅
chelseal 在职认证  发表于 2015-5-1 14:12:43 |只看作者 |坛友微信交流群
wxl1117 发表于 2015-5-1 00:22
请问您这个问题解决了么?我安装了该命令,但怎么都运行改不了。。。
没有的,最后放弃这个方法了

使用道具

板凳
wxl1117 发表于 2015-5-1 18:49:29 |只看作者 |坛友微信交流群
thanks anyway!

使用道具

报纸
蔡苗 学生认证  发表于 2016-7-3 16:58:44 |只看作者 |坛友微信交流群
chelseal 发表于 2015-5-1 14:12
没有的,最后放弃这个方法了
所以最后就放弃固定效应模型了么,直接用xttobit?不过感觉直接用随机效应模型心里好没底啊,假设太强了,不做检验说不过去。

使用道具

地板
guyue001 学生认证  发表于 2017-5-8 19:19:39 |只看作者 |坛友微信交流群
还有一个解决办法就是设置n个虚拟变量,不过也是半天跑不出来

使用道具

7
guanzihuan 学生认证  发表于 2017-7-19 16:13:13 |只看作者 |坛友微信交流群
想请教一下,pantob回归要怎么设置数据格式,我看example那里写 pantob y x* 。pantob的数据设定与一般的面板数据那样xtset就可以了吗?
谢谢!

使用道具

8
lopez93 在职认证  发表于 2017-8-8 14:53:04 |只看作者 |坛友微信交流群
这命令根本就跑不出结果

使用道具

9
蓝色 发表于 2017-8-8 15:19:48 |只看作者 |坛友微信交流群
lopez93 发表于 2017-8-8 14:53
这命令根本就跑不出结果
可以出来结果
用命令自带的程序

  1. . clear all

  2. .
  3. . program drop _all

  4. .
  5. . drop _all

  6. . set obs 2000
  7. obs was 0, now 2000

  8. . set seed 33948731

  9. . *generate three standard normal
  10. . local i= 1

  11. . while `i'<=4 {
  12.   2. gen x`i'=invnorm(uniform())
  13.   3. local i = `i'+1
  14.   4. }

  15. . gen e= invnorm(uniform())

  16. . *generate outcome
  17. . gen y=-1+3*x1-0.5*x2+e

  18. . replace y=y*(y>0)
  19. (1275 real changes made)

  20. . drop e

  21. . gen tren=int(_n/4+0.8)

  22. . gen z1=x1*x2

  23. . gen country =round(_n*uniform()/4)+1

  24. .
  25. . pantob y x* z1 tren

  26. ==============================================================================

  27. PANTOB:  Estimation of Panel Data Censored Regression Model
  28.          Based on Honor?(1992)
  29.          Version 0.6

  30. ------------------------------------------------------------------------------

  31.        Squared loss used. See Figures 5a and 5b in  Honor?(1992).

  32. ------------------------------------------------------------------------------

  33. Number of Obs  :            2000                      Unit ID:            tren
  34. Number of Units:             500                      ChiSq:           1402.25
  35. Number of Units Used:        500                      Prob > ChiSq:     0.0000
  36. Avg No. of Obs per Unit:    4.00                      Frac. Censored:     0.36
  37. Min No. of Obs for a Unit:     5
  38. Max No. of Obs for a Unit:     5

  39. ------------------------------------------------------------------------------
  40.            y |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
  41. -------------+----------------------------------------------------------------
  42.           x1 |     2.9649   .0826589    35.87   0.000     2.802892    3.126909
  43.           x2 |  -.6009623    .082473    -7.29   0.000    -.7626064   -.4393181
  44.           x3 |   .0267212   .0456266     0.59   0.558    -.0627053    .1161476
  45.           x4 |   .0134876   .0549106     0.25   0.806    -.0941352    .1211103
  46.           z1 |    .064638   .0774892     0.83   0.404     -.087238    .2165139
  47. ------------------------------------------------------------------------------

  48. ==============================================================================



  49. . pantob y x* z1 tren, bootstrap

  50. ==============================================================================

  51. PANTOB:  Estimation of Panel Data Censored Regression Model
  52.          Based on Honor?(1992)
  53.          Version 0.6

  54. ------------------------------------------------------------------------------

  55.        Squared loss used. See Figures 5a and 5b in  Honor?(1992).

  56. ------------------------------------------------------------------------------

  57. Number of Obs  :            2000                      Unit ID:            tren
  58. Number of Units:             500                      ChiSq:           1845.44
  59. Number of Units Used:        500                      Prob > ChiSq:     0.0000
  60. Avg No. of Obs per Unit:    4.00                      Frac. Censored:     0.36
  61. Min No. of Obs for a Unit:     5
  62. Max No. of Obs for a Unit:     5

  63. ------------------------------------------------------------------------------
  64.            y |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
  65. -------------+----------------------------------------------------------------
  66.           x1 |     2.9649   .0729288    40.65   0.000     2.821962    3.107838
  67.           x2 |  -.6009623   .0838106    -7.17   0.000     -.765228   -.4366966
  68.           x3 |   .0267212   .0392433     0.68   0.496    -.0501944    .1036367
  69.           x4 |   .0134876   .0542122     0.25   0.804    -.0927664    .1197415
  70.           z1 |    .064638   .0813188     0.79   0.427    -.0947439    .2240198
  71. ------------------------------------------------------------------------------

  72. NOTE: Standard errors calculated using bootstrap.

  73. ==============================================================================



  74. . pantob y x* z1 tren, absloss

  75. ==============================================================================

  76. PANTOB:  Estimation of Panel Data Censored Regression Model
  77.          Based on Honor?(1992)
  78.          Version 0.6

  79. ------------------------------------------------------------------------------

  80.        Absolute loss used. See Figures 4a and 4b in  Honor?(1992).

  81. ------------------------------------------------------------------------------

  82. Number of Obs  :            2000                      Unit ID:            tren
  83. Number of Units:             500                      ChiSq:           2506.51
  84. Number of Units Used:        500                      Prob > ChiSq:     0.0000
  85. Avg No. of Obs per Unit:    4.00                      Frac. Censored:     0.36
  86. Min No. of Obs for a Unit:     5
  87. Max No. of Obs for a Unit:     5

  88. ------------------------------------------------------------------------------
  89.            y |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
  90. -------------+----------------------------------------------------------------
  91.           x1 |   3.052604   .0637494    47.88   0.000     2.927657    3.177551
  92.           x2 |  -.5472128   .0568286    -9.63   0.000    -.6585948   -.4358308
  93.           x3 |   .0127996   .0515807     0.25   0.804    -.0882968     .113896
  94.           x4 |   .0407447   .0509333     0.80   0.424    -.0590828    .1405722
  95.           z1 |   .0320392   .0609177     0.53   0.599    -.0873573    .1514357
  96. ------------------------------------------------------------------------------

  97. WARNING: Std. Err. calculated using a crude automatic bandwidth selection.
  98.          The bootstrap is preferable for final version (but it is slow).

  99. ==============================================================================



  100. . pantob y x* z1 tren, absloss bootstrap

  101. ==============================================================================

  102. PANTOB:  Estimation of Panel Data Censored Regression Model
  103.          Based on Honor?(1992)
  104.          Version 0.6

  105. ------------------------------------------------------------------------------

  106.        Absolute loss used. See Figures 4a and 4b in  Honor?(1992).

  107. ------------------------------------------------------------------------------

  108. Number of Obs  :            2000                      Unit ID:            tren
  109. Number of Units:             500                      ChiSq:           3350.34
  110. Number of Units Used:        500                      Prob > ChiSq:     0.0000
  111. Avg No. of Obs per Unit:    4.00                      Frac. Censored:     0.36
  112. Min No. of Obs for a Unit:     5
  113. Max No. of Obs for a Unit:     5

  114. ------------------------------------------------------------------------------
  115.            y |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
  116. -------------+----------------------------------------------------------------
  117.           x1 |   3.052604    .056607    53.93   0.000     2.941656    3.163552
  118.           x2 |  -.5472128   .0840134    -6.51   0.000     -.711876   -.3825496
  119.           x3 |   .0127996   .0703996     0.18   0.856     -.125181    .1507802
  120.           x4 |   .0407447   .0505748     0.81   0.420    -.0583801    .1398695
  121.           z1 |   .0320392   .0832174     0.39   0.700    -.1310639    .1951422
  122. ------------------------------------------------------------------------------

  123. NOTE: Standard errors calculated using bootstrap.

  124. ==============================================================================
复制代码


使用道具

10
lopez93 在职认证  发表于 2017-8-8 19:44:51 |只看作者 |坛友微信交流群
蓝色 发表于 2017-8-8 15:19
可以出来结果
用命令自带的程序
我下午跑出来了,不加bootstrap的话十几分钟,加bootstrap的话现在已经三小时了还没出结果,看来是自抽样计算标准误的时间占了大头。这个命令对电脑性能的要求很高吧?

使用道具

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

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-26 13:22