AnalysisofCrossSectionandPanelDataYanZhangSchoolofEconomics,FudanUniversityCCER,FudanUniversityIntroductoryEconometricsAModernApproachYanZhangSchoolofEconomics,FudanUniversityCCER,FudanUniversityAnalysisofCrossSectionandPanelDataPart3.SomeAdvancedTopicsChap13.PoolingCrossSectionsacrossTimeDataStructurePooledCrossSection;PanelDataIndependentlyPooledCrossSectiontheyconsistofindependentlysampledobservations.与单一随机样本的差别:在不同时点对总体抽样可能导致观测点不是同分布的(notidenticallydistributed.)DifferentinterceptandslopesPolicyanalysisPanelDataThesameunitswecannotassumethattheobservationsoflongitudinaldataareindependentlydistributedacrosstime.SpecialmodelsandmethodsDifferencing(removetime-constant,unobservedattributesoftheunits.)PooledCrossSectionsPoolingcrosssectionsfromdifferentyears;Effectivelyanalyzingtheeffectsofanewgovt.policy;Similartoastandardcrosssection,exceptthatweoftenneedtoaccountforseculardifferencesinthevariablesacrossthetime.PanelorLongitudinalDataThesamecrosssectionalmembers;TocontrolcertainunobservedCharacteristicofcrosssections;Tostudytheimportanceoflagsinbehaviorortheresultofdecisionmaking13.1PoolingIndependentCrossSectionsacrossTimeIncreasethesamplesizeDummyVariablesthepopulationmayhavedifferentdistributionsindifferenttimeperiodsdifferentinterceptandslopesYeardummy:includingdummyvariablesforallbutoneyear,wheretheearliestyearinthesampleisusuallychosenasthebaseyear.Thepatternofcoef.ontheyeardummiesThechangeofthecoef.ofthekeyvariableovertimepolicyanalysisExample13.1Hasthepatternofwomen’sfertilityChanged?FactorsonWomen’sFertilityoverTime?age;education;religion;regiondependentvariable:fertilityrates;differentperiodData:FERTIL1.RAW,whichissimilartothatusedbySander(1994),comesfromtheNationalOpinionResearchCenter’sGeneralSocialSurveyfortheevenyearsfrom1972to1984Interpretationsbaseyear:1972education:.128(4)=.512.turningpointofageheteroskedasticityoferrortermovertime?B-Ptest;WLSeduc?interactioneffects(P.13.7,IV)Hastheeffectofeducationonfertilityrateschangedovertime?TheChowTestforStructuralChangeAcrossTimeOneformofthetestobtainsthesumofsquaredresidualsfromthepooledestimationastherestrictedSSR.TheunrestrictedSSRisthesumoftheSSRsforthetwoseparatelyestimatedtimeperiods.Anotherway:interactingeachvariablewithayeardummyforoneofthetwoyearsandtestingforjointsignificanceoftheyeardummyandalloftheinteractionterms.Usually,afteranallowanceforinterceptdifference,certainslopecoefficientsaretestedforconstancybyinteractingthevariableofinterestwithyeardummies.E.g.13.2ChangesinthereturntoeducationandthegenderwagegapEconometricModel:nominalvs.realvalueProvidedthedollaramountsappearinlogarithmicformanddummyvariablesareusedforalltimeperiods(except,ofcourse,thebaseperiod),theuseofaggregatepricedeflatorswillonlyaffecttheintercepts;noneoftheslopeestimateswillchange.ChowTest:Whathappensifweinteractallindependentvariableswithy85inequation(13.2)?13.2PolicyAnalysiswithPooledCrossSectionsnaturalexperiments:occurswhensomeexogenousevent—oftenachangeingovernmentpolicy—changestheenvironmentinwhichindividuals,families,firms,orcitiesoperate.controlgroup:notaffectedbythepolicychangetreatmentgroup:thoughttobeaffectedbythepolicychange.Methods:tocontrolforsystematicdifferencesbetweenthecontrolandtreatmentgroups,weneedtwoyearsofdata,onebeforethepolicychangeandoneafterthechange.thedifference-in-differencesestimator:Example13.4EffectsofWorkerCompensationLawsonDuration1980.7.15:Kentuckyraisedthecaponweeklyearningsthatwerecoveredbyworkers’compensation.Problem:itseffectsondurationinfluenced:high-incomeworkercontrolgroup(low)andtreatmentgroup(high)Meyer,ViscusiandDurbin(1995)INJURY.RAWlog(durat);fchnge;highearn;age;gender;maritalstatus;industry;typeofinjury13.3Two-periodPanelDataAnalysisTwotypesofunobservedfactorsaffectingthedependentv.inthepaneldata:keepconstant:unobservedeffect(fixedeffect)varyovertime:idiosyncraticerror(time-varyingerror)Estimationpooledcrosssections;drawback:Heterogeneitybias:Therefore,evenifweassumethattheidiosyncraticerroruitisuncorrelatedwithxit,pooledOLSisbiasedandinconsistentifaiandxitarecorrelated.Inmostapplications,themainreasonforcollectingpaneldataistoallowfortheunobservedeffect,ai,tobecorrelatedwiththeexplanatoryv.-s.first-differencedequationFirst-DifferencedEquationKeyassumptions:strictexogeneity:duiisuncorrelatedwithdxi.first-differencedestimatordximusthavesomevariationacrossi.(13.17)satisfiesthehomoskedasticityassumption.E.g.13.5Sleepingvs.WorkingSLP75_81.RAW13.5DifferencingwithMorethanTwoTimeperiodsDataStructure(fixedeffect&time-varyingerror)KeyAssumption(strictexogeneity):Thatis,theexplanatoryvariablesarestrictlyexogenousafterwetakeouttheunobservedeffect,ai.Caseswhenstrictexogeneitybefalse:Ifxitjisalaggeddependentvariable.Ifwehaveomittedanimportanttime-varyingvariableMeasurementerrorinoneormoreexplanatoryvariablesDifferencingDifferencing:WhenTissmallrelativetoN,weshouldincludeadummyvariableforeachtimeperiodtoaccountforsecularchangesthatarenotbeingmodeled.