全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
45634 39
2014-12-14
use "E:\stata\sample\chap16\案例16.1.dta", clear

. cd E:\STATA12.0\ado\xtptm
E:\STATA12.0\ado\xtptm

. encode diqu,gen(region)

. xtset region year
       panel variable:  region (strongly balanced)
        time variable:  year, 2008 to 2012
                delta:  1 unit

. xtptm profit,rx(sale) thrvar(cost) iters(2000) grid(200)

================ Fundamental information: ===================

Number of Regime independent variables:    0
Number of Regime dependent variables:    1
Number of individuals in panel:   20
Number of periods in panel:    5

================ Ordinary Fixed effect regression: =========

Sum of Squared Residuls:       1.1015
Stardard error of regression:       0.1181
Regression Result(ordinary standard error):
----------------------------------------------------
    |       Coef         Std           t        Prob
----+-----------------------------------------------
  1 |     0.0006      0.0005      1.3678      0.1752   (这里为什么只有一个系数?)
----------------------------------------------------
Regression Result(Robust standard error): (为什么又多了个稳健标准误?有什么作用?)
-----------------------------------------------------
    |       Coef   Std_Robust           t        Prob
----+------------------------------------------------
  1 |     0.0006       0.0004      1.6849      0.0960
-----------------------------------------------------

================ Single threshold regession: =================== 单门槛回归吗?单是只一个门槛变量还是指一个门槛值?

Minimized Sum of Squared Residuals:    0.8822
Standard error of residuals:    0.1064
Threshold estimator:   11.3611
95% conf. intv. of threshold:   11.3274   11.3836
LR Critical value to test gamma=gamma0:    7.3523 (请问这行结果怎么解读?)
Threshold regression(Ordinary Std. Error):
----------------------------------------------------
    |       Coef         Std           t        prob
----+-----------------------------------------------
  1 |    -0.0001      0.0005     -0.2480      0.8048
  2 |     0.0006      0.0004      1.3794      0.1717  (系数分别对应到什么变量阿,有常变量吗?)
----------------------------------------------------
Threshold regression(Robust Std. Error):
-----------------------------------------------------
    |       Coef   Std_Robust           t        prob
----+------------------------------------------------
  1 |    -0.0001       0.0004     -0.3052      0.7611
  2 |     0.0006       0.0003      1.6497      0.1030
-----------------------------------------------------
Note: Critcal (Inverse CDF of LR stat): -2*ln(1-sqrt(1-alpha))
Ho: No threshold; Ha: Single threshold
Number of bootstrap:2000
F-stat & Prob:   19.3819   0.0000
F-critical value of 90% 95% 99%:
                 1
    +---------------+
  1 |  2.859457574  |
  2 |  4.282186037  |
  3 |  7.315390308  |
    +---------------+
Thresholds in single model:
  11.36112623

============== Descrpitive statistic in each regime: =========== (大神帮忙解释下以下结果)

Descriptive statistics of y-X-THR at regime :  1
----------------------------------------------------------------
    |       Mean         Std         Min         Max       Count
----+-----------------------------------------------------------
  1 |    10.0823      0.3656      9.2360     10.5545          52
  2 |   217.1043     18.9613    138.0000    230.2526          52
  3 |    11.0819      0.1916     10.7579     11.3516          52
----------------------------------------------------------------
Descriptive statistics of y-X-THR at regime :  2
----------------------------------------------------------------
    |       Mean         Std         Min         Max       Count
----+-----------------------------------------------------------
  1 |    10.6126      0.9030      9.6125     12.4765          48
  2 |   233.6324     41.5348     89.0000    346.0000          48
  3 |    11.9187      0.6118     11.3667     13.2804          48
----------------------------------------------------------------
LR and Thresholds series are stored in Stata matrix: LR#
You can observe the scatter plot by: _matplot LR#, columns(1 2)

还有 最后的门槛值是确定了只有一个吗?还是要继续做regime(2),regime(3)阿?


二维码

扫码加我 拉你入群

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

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

全部回复
2014-12-14 01:33:13
求好人顶起来!3Q
二维码

扫码加我 拉你入群

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

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

2015-3-27 21:40:07
这里有你想要的结果解释对你有帮助
附件列表

结果解析.pdf

大小:887.98 KB

只需: 1 个论坛币  马上下载

对你有帮助

二维码

扫码加我 拉你入群

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

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

2015-3-28 09:20:16
楼上提供的确实是王群勇老师xtptm的回归结果分析,楼主可做参考。
二维码

扫码加我 拉你入群

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

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

2015-6-14 16:53:32
楼主搞清楚了么,求交流
二维码

扫码加我 拉你入群

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

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

2016-1-4 19:05:28
就我这段时间对门槛模型的学习,有以下几点看法:
      1.目前来说,门槛模型的检验和估计方法主要有三种:南开大学王群勇老师的xtptm命令(2008版或2011版)和xtreg命令(这个命令已经得到Stata官方认可;第三个就是中山大学连玉君老师的xtthres命令。
      2.以上命令各有优缺点。简单来说,xtptm和xthreg比较运算比较快,即使在BS次数超过1000的情况下,而xtthres在BS超过500时会耗时长一点;其实时间不是很重要,最核心的区别是这三种方法的检验和估计结果会存在一定的差别,某些情况下,差别会很大,我曾用同一套数据,用一种设置,但结果差别很大(希望是个案);连玉君老师的xtthres在检验多重门槛时,会存在门槛区间重叠的问题,导致三重门槛估计结果存在缺失(这是我的数据实践的结果,论坛有人说这是门槛区间共线的问题,我也问了连老师,但连老师估计太忙了,到目前也没有回复我的邮件);另外,连老师自己也推荐用王群勇老师的xthreg命令,认为这个命令背后的算法更合理,其运行也比较快,比较稳定。
      以上就是我的看法,比较啰嗦,请大家多多包涵。
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群