




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
多元回歸分析虛擬變量1第一頁(yè),共十八頁(yè),編輯于2023年,星期五DummyVariablesAdummyvariableisavariablethattakesonthevalue1or0Examples:male(=1ifaremale,0otherwise),south(=1ifinthesouth,0otherwise),etc.Dummyvariablesarealsocalledbinaryvariables,forobviousreasonspersonwageeducfemalemarried13.1021023.24221133.0020046.00440155.30701……………52511.565115263.5500Table:Apartiallistingofthedatainwage1.raw2第二頁(yè),共十八頁(yè),編輯于2023年,星期五ADummyIndependentVariableConsiderasimplemodelwithonecontinuousvariable(x)andonedummy(d)y=b0+d0d+b1x+uThiscanbeinterpretedasaninterceptshiftIfd=0,theny=b0+b1x+uIfd=1,theny=(b0+d0)+b1x+uThecaseofd=0isthebasegroup,thend0=E(y|x,d=1)-E(y|x,d=0)3第三頁(yè),共十八頁(yè),編輯于2023年,星期五Exampleofd0>0xy}b0y=b0+b1xslope=b1d=0{d0y=(b0+d0)+b1xd=1(y=b0+d0d+b1x+u)4第四頁(yè),共十八頁(yè),編輯于2023年,星期五DummiesforMultipleCategoriesWecanusedummyvariablestocontrolforsomethingwithmultiplecategoriesWagedeterminations:wage=-1.57-1.81female+0.572educ+0.025exper+0.141tenure(0.72)(0.26)(0.049)(0.012)(0.021)
n=526R2=0.364Thecoefficientoffemale(-1.81)meansthewageoffemaleis$1.81lessperhourthanmaleworkersaftercontrollingothervariables.wage=7.10-2.51female
(0.21)(0.30)Thismeansthattheaveragemalewageperhouris$7.10,andfemale’swageis$2.51less,whichis$4.59perhour.Istheresignificantwagedifferencebtwmenandwomen?Yes,itindeedis.Becausethet-valueoffemaleis-2.51/0.30=-8.37Logformlog(wage)=0.501–0.301female+0.087educ+0.005exper+0.017tenure(0.102)(0.037)(0.0069)(0.016)(0.0030)
n=526R2=0.3923Femaleis30.1%lessthanmen.Theexactdifferenceislog(wageF)-log(wageM)=-0.301,(wageF-wageM)/wageM=exp(-0.301)-1=0.3512=35.12%5第五頁(yè),共十八頁(yè),編輯于2023年,星期五Example:EffectsofComputerOwnershiponCollegeGPAWhetherastudentownacomputereffecttheperformanceofthestudent?colGPA=b0+d0
PC+b1hsGPA+b2ACT+ucolGPA=1.26
+0.157PC+0.447hsGPA+0.0087ACT+u
(0.33)(0.057)(0.094)(0.0105)
n=141,R2=0.219ThismeansthatastudentwhoownsacomputerhasapredictedGPAabout0.16pointshigherthanacomparablestudentwithoutacomputer.ThecoefficientofPCisdifferentfromzero,that’s,thedifferencebetweentwodifferenttypestudentsissignificant.6第六頁(yè),共十八頁(yè),編輯于2023年,星期五MultipleCategories(cont)AnycategoricalvariablecanbeturnedintoasetofdummyvariablesBecausethebasegroupisrepresentedbytheintercept,iftherearencategoriesthereshouldben–1dummyvariablesIftherearealotofcategories,itmaymakesensetogroupsometogetherExample:wagedeterminationslog(wage)=0.388+0.292marrmale-0.120marrfem-0.097singfem+(0.102)(0.055)(0.058)(0.057)0.084educ+0.003exper+0.016tenure(0.007)(0.0017)(0.003)n=526R2=0.42387第七頁(yè),共十八頁(yè),編輯于2023年,星期五InteractionsAmongDummiesInteractingdummyvariablesislikesubdividingthegrouplog(wage)=0.388-0.097female+0.292married-0.316female?married+(0.102)(0.057)(0.055)(0.074)0.084educ+0.003exper+0.016tenure(0.0069)(0.0017)(0.003)n=526R2=0.4238Thebasegroupissinglemenwhenfemale=0andmarried=0So,whenfemale=0andmarried=1,theinterceptforthemarriedmenis0.388+.0292=0.680female=1,married=0,singlewomen0.388-0.097=0.291female=1,married=1,marriedwomen0.388-0.097+0.292-0.316=0.2678第八頁(yè),共十八頁(yè),編輯于2023年,星期五MoreonDummyInteractionslog(wage)=b0+b1
female+b2married+b3
female?married+b4
educ+b5
exper+b6
tenurefemale=0,married=0,log(wage)=b0
+b4
educ+b5
exper+b6
tenurefemale=0,married=1,log(wage)=b0
+b2
+b4
educ+b5
exper+b6
tenurefemale=1,married=0,log(wage)=b0+b1
+b4
educ+b5
exper+b6
tenurefemale=1,married=1,log(wage)=b0+b1+b2
+b3+b4
educ+b5
exper+b6
tenure9第九頁(yè),共十八頁(yè),編輯于2023年,星期五OtherInteractionswithDummiesCanalsoconsiderinteractingadummyvariable,d,withacontinuousvariable,xy
=b0+d1d+b1x+d2d*x+uIfd=0,theny
=b0+b1x+uIfd=1,theny
=(b0+d1)+(b1+d2)x+uThisisinterpretedasachangeintheslopeExample:loghourlywageequation,(p235)log(wage)=0.465-0.210female+0.090educ-0.0072female?educ+0.0046exper+0.017tenure(0.123)(0.174)(0.0087)(0.014)(0.0016)(0.0030)n=526R2=0.3926Returntoeducationformenis0.090,or9%,forwomen,itis0.090-0.0072=0.0828,or8.28%Isthisdifferencesignificant?t=-0.0072/0.014=-0.53,sowecan’trejectthenullhypothesisthatthereisnodifferencebtwthereturntoeducationformenandwomen.10第十頁(yè),共十八頁(yè),編輯于2023年,星期五yxy=b0+b1xy=(b0+d0)+(b1+d1)xExampleofd0>0andd1<0d=1d=011第十一頁(yè),共十八頁(yè),編輯于2023年,星期五TestingforDifferencesAcrossGroupsTherefore,whethertheparametersoftwogroupsarethesameresultinwhetheralltheparametersofthedummyvariableandinteractiontermsarezero.Thatis,H0:d0=0,d1=0,...,dk=012第十二頁(yè),共十八頁(yè),編輯于2023年,星期五TestingforDifferencesAcrossGroupsWagedeterminations:whethermenandwomenhavedifferentinterceptandslopes?Theoriginalmodelislog(wage)=b0
+b1educ+b2
exper++b3tenure+ufemaleisthedummyvariableTheunrestrictedmodelislog(wage)=b0
+d0
female+b1educ+d1female?educ+b2
exper+d2female?exper+b3tenure
+d4
female?tenure+uEstimatedtherestrictedandunrestrictedmodel,wegetlog(wage)=0.284
+0.092
educ+0.0041exper+0.022
tenuren=526SSRr=101.3298log(wage)=0.322+0.034
female+0.096educ-0.016
female?educ+
0.0081
exper-0.0059female?exper+0.018
tenure
–0.0079
female?tenuren=526SSRur=88.5825TheF=[(101.3298-88.5825)/4]/(88.5825/518)=18.82Wewillrejectthenullhypothesisandthereissignificantdifferencebtwmenandwomen.Statacommand:testfemale
female?educfemale?exper
female?tenure13第十三頁(yè),共十八頁(yè),編輯于2023年,星期五TestingforDifferencesAcrossGroupsTestingwhetheraregressionfunctionisdifferentforonegroupversusanothercanbethoughtofassimplytestingforthejointsignificanceofthedummyanditsinteractionswithallotherxvariablesSo,youcanestimatethemodelwithalltheinteractionsandwithoutandformanFstatistic,butthiscouldbeunwieldy14第十四頁(yè),共十八頁(yè),編輯于2023年,星期五TestingforDifferencesAcrossGroups,withoutdummyvariablesWagedeterminations:whethermenandwomenhavedifferentinterceptandslopes?WeestimatethemodelformenandwomenseparatelyMen:log(wage)=0.322
+0.096
educ+0.0081exper+0.0182
tenuren1=274SSR1=49.5472Women:log(wage)=0.356
+0.080
educ+0.0023exper+0.010
tenuren2=252SSR2=39.0353So,wegettheunrestrictedmodel’sSSRur=49.5472+39.0353=88.5825,Thepooledmodellog(wage)=0.284
+0.092
educ+0.0041exper+0.022
tenuren=526SSRr=101.3298ThenewFvalueisF=[(101.3298-(49.5472+39.035))/4]/((49.5472+39.035)/518)=18.82So,weget
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度個(gè)人車(chē)輛抵押貸款合同協(xié)議-@-1
- 2《長(zhǎng)征勝利萬(wàn)歲》《大戰(zhàn)中的插曲》聯(lián)讀教學(xué)設(shè)計(jì) 2024-2025學(xué)年統(tǒng)編版高中語(yǔ)文選擇性必修上冊(cè)
- 6《騎鵝旅行記》(節(jié)選)(教學(xué)設(shè)計(jì))-2024-2025學(xué)年語(yǔ)文六年級(jí)下冊(cè)統(tǒng)編版
- 2025年臺(tái)式離子風(fēng)機(jī)合作協(xié)議書(shū)
- 2025四川省安全員考試題庫(kù)附答案
- 聚氨酯上漿劑與玻璃纖維界面結(jié)合機(jī)理與性能研究
- 太原市城市更新問(wèn)題及對(duì)策研究
- 《葉之音》系列作品沒(méi)骨法的實(shí)踐探索
- 知識(shí)產(chǎn)權(quán)商標(biāo)轉(zhuǎn)讓居間合同
- 現(xiàn)代學(xué)徒制在職業(yè)教育中的應(yīng)用研究
- JCT2110-2012 室內(nèi)空氣離子濃度測(cè)試方法
- 視頻號(hào)運(yùn)營(yíng)規(guī)則
- 文印服務(wù)投標(biāo)方案(技術(shù)方案)
- 初三語(yǔ)文總復(fù)習(xí)全程計(jì)劃表
- 九年級(jí)初中語(yǔ)文閱讀理解專(zhuān)題訓(xùn)練及答案
- 經(jīng)濟(jì)地理學(xué)智慧樹(shù)知到課后章節(jié)答案2023年下江西師范大學(xué)
- 班規(guī)班約高一班規(guī)班約及考核細(xì)則
- 《幼兒文學(xué)》 課件全套 第1-8章 幼兒文學(xué)概述- 圖畫(huà)書(shū)
- 代用茶批生產(chǎn)記錄
- 41篇小學(xué)三年級(jí)語(yǔ)文課外閱讀練習(xí)題及答案
- 《旅游學(xué)概論》第一章
評(píng)論
0/150
提交評(píng)論