您好,欢迎访问三七文档
当前位置:首页 > 财经/贸易 > 经济学 > 复旦大学计量经济学讲义08横截面时间序列模型
8.18.1()independentlypooledcrosssectionOLSBreush¡PaganWhiteWhiteR2N£R2»Â2kFWLSOLS8.2()F=SSR¡(SSR1+SSR2)SSR1+SSR2£n¡2(k+1)k+18.3():yit=¯0+±0dt+¯1xit+®i+uitunobservede®ect¯xede®ectunobservedheterogeneityidiosyncraticerroetime-varyingyit=¯0+±0dt+¯1xit+vitvit=®i+uit-145-8.1vitcompositeerror8.4()OLSheterogeneitybias8.5()NTAR1FGLS½Cochrane¡OrcuttestimationPrais¡Winstenestimation(1¡½)1=2®ifixedeffectstransformationyit=¯1xit+®i+uiti¹yi=¯1¹xi+®i+¹ui(8-1)time¡demeaneddata:yit¡¹yi=¯1(xit¡¹xi)+uit¡¹ui(8-2)Äyit=¯1Äxit+Äuit(8-3)withintransformaitonOLSfixedeffectsestimatorwithinestimator(8-3)OLStimevariation(8-1)OLSbetweenestimatoryxyx8.6()dummyvariableregression:i²¯j²yit=¯0+¯1xit+®i+uitFEFD®i®i®iCov(xitj;®i)=0-146-randomeffectsmodel®i¯jvit=®i+uitCov(vit;vis)=¾2a¾2a+¾2ut6=sOLSyit=®it+xit¯it+uit;i=1;¢¢¢;N;t=1;¢¢¢;T(8-4)NT(k+1)+N(NT(k+1)+T)NTNTyt=®+Xtb+ut(8-5)yi=®+xib+ui(8-6)N®¯(8-5)²pooledregressionmodel(8-7)²individual¡meancorrectedregressionmode(8-8)²unrestrictedmodel(8-9)yit=®+xit¯+uit;i=1;¢¢¢;N;t=1;¢¢¢;T(8-7)yit=®i+xit¯+uit;i=1;¢¢¢;N;t=1;¢¢¢;T(8-8)yit=®i+xit¯i+uit;i=1;¢¢¢;N;t=1;¢¢¢;T(8-9)8.2yit®i¯i(8-9)Wxx;i=TPt=1(xit¡¹xi)0(xit¡¹xi)Wxy;i=TPt=1(xit¡¹xi)0(yit¡¹yi)Wyy;i=TPt=1(yit¡¹yi)0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uit´2PNi=1PTt=1^u2it¡11CA=NT2(T¡1)ÃT2¹^0u¹^u^u0^u¡1!2(8-19)¹^0u¹^u^u0^u18.14575Pit=¯0+¯1RNDi;t¡5+it-150-8.1SAS:1DATATEMP;2SETLI.RND;3P=LOG(P);4RUN;5/¤OLSEstimation¤/6PROCREGDATA=TEMP;7MODELP=RND;8RUN;8.2SAS:1DATARND;2SETLI.RND;3P=LOG(P);4RUN;PROCMEANSDATA=RNDNORPRINT;5CLASSCODE;6VARPRND;7OUTPUTOUT=ASUM=TOTALMEAN=MPMR;8RUN;DATATEM;9SETA;10IFN=1THENDELETE;11RUN;PROCREGDATA=TEM;12MODELMP=MR;13RUN;-151-8.38.3SAS:1DATATEMP;2SETLI.RND;3P=LOG(P);4RUN;56%MACROA;7%DOI=2%TO45;8DATATEMP;9SETTEMP;10B=7¤%EVAL(&I);11A=B¡6;12IFA=N=BTHENW&I=1;ELSEW&I=0;13OUTPUT;14RUN;15%END;16%MENDA;1718%A19PROCREGDATA=TEMP;20MODELP=RNDW2¡W45;21RUN;2223/¤Ftest¤/PROCREGDATA=TEMPNOPRINTOUTEST=A;24M1:MODELP=RNDW2¡W45/SSE;25M2:MODELP=RND/SSE;26RUN;DATANULL;27SETA;28IFFIRST.SSETHENCALLSYMPUT('ESS2',SSE);29ELSECALLSYMPUT('ESS1',SSE);30RUN;DATANULL;31Q1=FINV(0.95,50,269);32Q2=((&ESS1¡&ESS2)/50)/(&ESS2/269);33PUTQ1=Q2=;34RUN;8.4SAS(1)(2)-152-(3)(4)(5)(6)-153-
本文标题:复旦大学计量经济学讲义08横截面时间序列模型
链接地址:https://www.777doc.com/doc-10674193 .html