下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 连锁店加盟标准合同
- 2025年度拆迁工程风险评估与管理咨询合同3篇
- 二零二四年学校体育设施草坪围栏采购协议3篇
- 二零二五年度个人间农产品收购与销售合同3篇
- 二零二五版煤炭市场居间代理合同样本8篇
- 二零二五年度航空燃油成品柴油销售合作协议4篇
- 商场物业消防管理合同:2025年度消防管理服务协议
- 二零二五年度大型公共建筑石材幕墙施工管理合同4篇
- 二手车库买卖合同协议(2024版)
- 2025年度废金属回收与再加工承包合同样本4篇
- 2024虚拟现实产业布局白皮书
- 车站值班员(中级)铁路职业技能鉴定考试题及答案
- JTG∕T E61-2014 公路路面技术状况自动化检测规程
- 高中英语短语大全(打印版)
- 2024年资格考试-对外汉语教师资格证笔试参考题库含答案
- 软件研发安全管理制度
- 三位数除以两位数-竖式运算300题
- 寺院消防安全培训课件
- 比摩阻-管径-流量计算公式
- GB/T 42430-2023血液、尿液中乙醇、甲醇、正丙醇、丙酮、异丙醇和正丁醇检验
- 五年级数学应用题100道
评论
0/150
提交评论