《Stata面板回归操作过程基本指令及概要.docx》由会员分享,可在线阅读,更多相关《Stata面板回归操作过程基本指令及概要.docx(4页珍藏版)》请在第一文库网上搜索。
1、Stata面板回归操作过程、基本指令及概要在使用Stata过程中,录入面板数据后,一般需要对初始数据进行识别,因此需要首先进行面板数据的识别,其指令为:1 .面板数据识别指令:tssetregionyear案例:部分初始数据庠列加区序年份,f,环境规卜环编八劳输h耕后面:农疝动:,财致支卜受巍;,天津220095.054.6621.754.335.736.394.154.07天津220105.074.6121.284.305.746.384.213.51天津220115.094.5620.774.295.746.374.522.09录入数据操作为:将上述初始数据录入Stata后(注意:录入数据
2、及首行只能是英文字母或者数字,不能有汉字),显示如下:vr1var2varvar4vacsvarevar7vrv9Xr9i0n|yaryrsqs1214212OOS4.SS4.5720.S4.13S.265.S23.7S3工20064.694.5720.BS4.105.39S.794.114120074.634.SS20.964.115.295.714.35120084.834.4820.034.145.425.594.80e1ZOOS4.S34.4920.194.135.425.604.967120104.754.4820.114.125.41S85.07120114.SO4.”20.54.
3、OSS.145.5S.23务120124“30.44.01t.27t.4t.41IO120134.S74.6S21.SS4.01S.07S.34S.7011120144.164.7522.553.964.75.25.841222OOS4.924.4820.034.405.666.422.5513220064.964.6721.834.405.6S6.412.714220074.994.7122.154.345.686.413.29IS22OO5.004.6521.GS433S686.393.esIC220094321.7S4.1(.7194.1t1722010.074.4221.24.SOS.
4、74F54.050.0000yCoef.Std.Err.ZPt9S%Conf.Interva1ers-.4219288.4094467-1.030.305-1.234161.3903034eqs.104028.05964011.740.084-.014282.222338x1.2092049.07298312.870.005.064426.35398382.8053867.08787559.170.000.6310654.9797081x3-.0112538.0739418-0.150.879-.1579345.1354268x4.036156.01808732.000.048.0002757
5、.0720364xS-.0661454.0135786-4.870.000-.0930816-.0392091cons-.0883802.9485521-0.090.926-1.9700521.793292sigma-u.2416969934 .面板数据随机效应回归指令:xtregyerseqsx1x2x3x4x5,re5 .hausman检验指令:Hausman检验是固定效应或者随机效应回归之后,需要加入的一个检验,具体指令如下:quixtregyerseqsx1x2x3x4x5,feeststorefequixtregyerseqsx1x2x3x4x5,feeststorerehausma
6、nfere6 .门限回归指令使用门限(或者门槛)回归模型的,只需要在录入数据后,使用以下指令进行回归即可,Xthreg为门限回归指令,yeqsx1x2x3x4x5分别为自变量和因变量,rx和qx括号中的分别为核心解释变量与门限变量,可以一致也可以不一致。单门槛:xthregyeqsx1x2x3x4x5,rx(ers)qx(ers)thnum(1)trim(O.01)grid(400)bs(300)双门槛:xthregyeqsx1x2x3x4x5,rx(ers)qx(ers)thnum(2)trim(0.010.05)bs(300300)双门槛作图指令:._matp1ote(1R21),co1u
7、mns(12)y1ine(7.35,!pattern(dash)connect(direct)msize(sma11)m1abp(0)m1abs(zero)ytit1e(1RStatistics)Xtit1e(FirstThresho1d)recast(1ine)name(1R21)nodraw._matp1ote(1R22),co1umns(12)y1ine(7.35,!pattern(dash)connect(direct)msize(sma11)m1abp(0)m1abs(zero)ytit1e(,1RStatistics)XtitIe(SecondThresho1d)recast(1ine)name(1R22)nodraw如需Stata空间回归指令以及方法,请联系QQ446395556或者百度文库搜索下载Stata空间回归指令及方法概述。