



下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、王群勇xthreg命令Fixed-effect panel threshold model using Statahelp xthreg (SJ15-1: st0373) 需要stata13及以上版本,2015年第一期 - xthreg - Estimate fixed-effect panel threshold modelSyntax命令: xthreg depvar indepvars if in, rx(varlist) qx(varname) thnum(#) grid(#) trim(numlist) bs(numlist) thlevel(#) gen(newvarname) n
2、oreg nobslog thgiven options where depvar is the dependent variable and indepvars are the regime-independent variables.Description xthreg fits fixed-effect panel threshold models based on the method proposed by Hansen (1999). xthreg uses XT xtreg to fit the fixed-effect panel threshold model given t
3、he threshold estimator. The fixed-effect panel threshold model requires balanced panel data, which is checked automatically by xthreg. The estimation and test of the threshold effect are computed in Mata.Options: rx(varlist) is the regime-dependent variable. Time-series operators are allowed. rx() i
4、s required. qx(varname) is the threshold variable. Time-series operators are allowed. qx() is required.门限变量 thnum(#) is the number of thresholds. In the current version (Stata 13), # must be equal to or less than 3. The default is thnum(1).门限个数 grid(#) is the number of grid points. grid() is used to
5、 avoid consuming too much time when computing large samples. The default is grid(300).格点数 trim(numlist) is the trimming proportion to estimate each threshold. The number of trimming proportions must be equal to the number of thresholds specified in thnum(). The default is trim(0.01) for all threshol
6、ds. For example, to fit a triple-threshold model, you may set trim(0.01 0.01 0.05).一个门限,设置一个数值(0.01);两个门限设置两个(0.01 0.05);三个门限,设置三个(0.01 0.01 0.05)。 bs(numlist) is the number of bootstrap replications. If bs() is not set, xthreg does not use bootstrap for the threshold-effect test.自举法次数 thlevel(#) sp
7、ecifies the confidence level, as a percentage, for confidence intervals of the threshold. The default is thlevel(95). gen(newvarname) generates a new categorical variable with 0, 1, 2, . for each regime. The default is gen(_cat). noreg suppresses the display of the regression result. nobslog suppres
8、ses the iteration process of the bootstrap. thgiven fits the model based on previous results. options are any options available for XT xtreg. Time-series operators are allowed in depvar, indepvars, rx(), and qx().Examples Setup . use hansen1999 Estimate a single-threshold model . xthreg i q1 q2 q3 d
9、1 qd1, rx(c1) qx(d1) thnum(1) trim(0.01) grid(400) bs(300) Estimate a triple-threshold model given the estimated result above . xthreg i q1 q2 q3 d1 qd1, rx(c1) qx(d1) thnum(3) trim(0.01 0.01 0.05) bs(0 300 300) thgiven . xthreg i q1 q2 q3 d1 qd1, rx(c1) qx(d1) thnum(3) trim(0.01 0.01 0.05) grid(400
10、) bs(300 300 300) Estimate a triple-threshold model directly . xthreg i q1 q2 q3 d1 qd1, rx(c1) qx(d1) thnum(3) trim(0.01 0.01 0.05) bs(300 300 300)绘图: Plot the confidence interval using likelihood-ratio (LR) statistics . _matplot e(LR21), columns(1 2) yline(7.35, lpattern(dash) connect(direct) msiz
11、e(small) mlabp(0) mlabs(zero) ytitle(LR Statistics) xtitle(First Threshold) recast(line) name(LR21) nodraw . _matplot e(LR22), columns(1 2) yline(7.35, lpattern(dash) connect(direct) msize(small) mlabp(0) mlabs(zero) ytitle(LR Statistics) xtitle(Second Threshold) recast(line) name(LR22) nodraw . graph combine LR21 LR22, cols(1)Author Qunyong Wang Institute of Statistics and Econometrics Nankai University
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 粉末冶金在磁性材料领域的应用考核试卷
- 《企业安全生产管理制度讲座》课件
- 《中央银行数字货币基本知识》课件
- 租赁设备的绿色制造与循环经济模式考核试卷
- 网络安全防护技术发展趋势考核试卷
- 煤化工生产过程中的节能减排措施考核试卷
- 小种子的成长之旅家长会课件
- 小学期末安全教育主题班会
- 数字化转型企业战略规划BLM模型培训课件
- 2025年中级会计职称之中级会计实务能力提升试卷A卷附答案
- 2021年四川绵竹高发投资有限公司招聘笔试试题及答案解析
- 建设工程消防验收备案抽查复查申请表
- 水费计算、水权与水价课件
- 思想道德与法治课件:第六章 第一节 社会主义法律的特征和运行
- 《康复医学》第四章 常见疾病的康复 第二节 肿瘤康复课件
- 61850报文解析-深瑞版-131016
- 2016年度高考全国3卷文综地理试题(解析版)
- 江西新定额2017土建定额说明及解释
- 国家电网有限公司十八项电网重大反事故措施(修订版)-2018版(word文档良心出品)
- 部编版三下语文《宇宙的另一边》教学课件PPT
- 《工程勘察设计收费管理规定》计价格200210号文
评论
0/150
提交评论