




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
多元回歸分析虛擬變量1第一頁,共十八頁,編輯于2023年,星期五DummyVariablesAdummyvariableisavariablethattakesonthevalue1or0Examples:male(=1ifaremale,0otherwise),south(=1ifinthesouth,0otherwise),etc.Dummyvariablesarealsocalledbinaryvariables,forobviousreasonspersonwageeducfemalemarried13.1021023.24221133.0020046.00440155.30701……………52511.565115263.5500Table:Apartiallistingofthedatainwage1.raw2第二頁,共十八頁,編輯于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第三頁,共十八頁,編輯于2023年,星期五Exampleofd0>0xy}b0y=b0+b1xslope=b1d=0{d0y=(b0+d0)+b1xd=1(y=b0+d0d+b1x+u)4第四頁,共十八頁,編輯于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第五頁,共十八頁,編輯于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第六頁,共十八頁,編輯于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第七頁,共十八頁,編輯于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第八頁,共十八頁,編輯于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第九頁,共十八頁,編輯于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第十頁,共十八頁,編輯于2023年,星期五yxy=b0+b1xy=(b0+d0)+(b1+d1)xExampleofd0>0andd1<0d=1d=011第十一頁,共十八頁,編輯于2023年,星期五TestingforDifferencesAcrossGroupsTherefore,whethertheparametersoftwogroupsarethesameresultinwhetheralltheparametersofthedummyvariableandinteractiontermsarezero.Thatis,H0:d0=0,d1=0,...,dk=012第十二頁,共十八頁,編輯于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第十三頁,共十八頁,編輯于2023年,星期五TestingforDifferencesAcrossGroupsTestingwhetheraregressionfunctionisdifferentforonegroupversusanothercanbethoughtofassimplytestingforthejointsignificanceofthedummyanditsinteractionswithallotherxvariablesSo,youcanestimatethemodelwithalltheinteractionsandwithoutandformanFstatistic,butthiscouldbeunwieldy14第十四頁,共十八頁,編輯于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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 五年級(jí)數(shù)學(xué)(小數(shù)除法)計(jì)算題專項(xiàng)練習(xí)及答案匯編
- 2025年執(zhí)業(yè)藥師考試中藥學(xué)專業(yè)知識(shí)(二)模擬試卷:中藥鑒定與功效實(shí)戰(zhàn)訓(xùn)練
- 2025年書法教師職業(yè)能力測(cè)試卷:書法教育政策法規(guī)與實(shí)施策略試題
- 護(hù)理回顧性查房實(shí)施要點(diǎn)
- 2025年企業(yè)人力資源管理師二級(jí)考試模擬試卷:人力資源規(guī)劃與員工績(jī)效管理體系
- 護(hù)理核心制度實(shí)施要點(diǎn)
- 2025年國(guó)際信息學(xué)奧林匹克競(jìng)賽編程試題:算法競(jìng)賽中的圖論算法挑戰(zhàn)
- 2025年廣播電視專業(yè)綜合知識(shí)模擬試卷:新聞采訪技巧與倫理
- 2025年河北省石家莊市小學(xué)五年級(jí)上學(xué)期期中數(shù)學(xué)試卷(含答案)
- 2025年護(hù)士執(zhí)業(yè)資格考試題庫(kù)(兒科護(hù)理學(xué)專項(xiàng))-兒科護(hù)理護(hù)理倫理試題
- 消防監(jiān)護(hù)人考試題及答案
- GB 35181-2025重大火災(zāi)隱患判定規(guī)則
- 漢代文化課件圖片高清
- 2024年延安通和電業(yè)有限責(zé)任公司招聘筆試真題
- 【四川卷】【高二】四川省成都市蓉城名校聯(lián)盟2023-2024學(xué)年高二下學(xué)期期末聯(lián)考數(shù)學(xué)試題
- 液壓油供應(yīng)合同協(xié)議
- 艾滋病病人的心理護(hù)理
- 2025-2030煤油產(chǎn)業(yè)規(guī)劃專項(xiàng)研究報(bào)告
- 香港勞務(wù)服務(wù)合同協(xié)議
- 《面試技巧與策略》課件
- 園林噴灑器企業(yè)數(shù)字化轉(zhuǎn)型與智慧升級(jí)戰(zhàn)略研究報(bào)告
評(píng)論
0/150
提交評(píng)論