伍德里奇計(jì)量經(jīng)濟(jì)學(xué)講義4.ppt_第1頁
伍德里奇計(jì)量經(jīng)濟(jì)學(xué)講義4.ppt_第2頁
伍德里奇計(jì)量經(jīng)濟(jì)學(xué)講義4.ppt_第3頁
伍德里奇計(jì)量經(jīng)濟(jì)學(xué)講義4.ppt_第4頁
伍德里奇計(jì)量經(jīng)濟(jì)學(xué)講義4.ppt_第5頁
已閱讀5頁,還剩12頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、1,Multiple Regression Analysis,y = b0 + b1x1 + b2x2 + . . . bkxk + u 5. Dummy Variables,2,Dummy Variables,A dummy variable is a variable that takes on the value 1 or 0 Examples: male (= 1 if are male, 0 otherwise), south (= 1 if in the south, 0 otherwise), etc. Dummy variables are also called binary

2、 variables, for obvious reasons,3,A Dummy Independent Variable,Consider a simple model with one continuous variable (x) and one dummy (d) y = b0 + d0d + b1x + u This can be interpreted as an intercept shift If d = 0, then y = b0 + b1x + u If d = 1, then y = (b0 + d0) + b1x + u The case of d = 0 is t

3、he base group,4,Example of d0 0,x,y,d0,b0,y = (b0 + d0) + b1x,y = b0 + b1x,slope = b1,d = 0,d = 1,5,Dummies for Multiple Categories,We can use dummy variables to control for something with multiple categories Suppose everyone in your data is either a HS dropout, HS grad only, or college grad To comp

4、are HS and college grads to HS dropouts, include 2 dummy variables hsgrad = 1 if HS grad only, 0 otherwise; and colgrad = 1 if college grad, 0 otherwise,6,Multiple Categories (cont),Any categorical variable can be turned into a set of dummy variables Because the base group is represented by the inte

5、rcept, if there are n categories there should be n 1 dummy variables If there are a lot of categories, it may make sense to group some together Example: top 10 ranking, 11 25, etc.,7,Interactions Among Dummies,Interacting dummy variables is like subdividing the group Example: have dummies for male,

6、as well as hsgrad and colgrad Add male*hsgrad and male*colgrad, for a total of 5 dummy variables 6 categories Base group is female HS dropouts hsgrad is for female HS grads, colgrad is for female college grads The interactions reflect male HS grads and male college grads,8,More on Dummy Interactions

7、,Formally, the model is y = b0 + d1male + d2hsgrad + d3colgrad + d4male*hsgrad + d5male*colgrad + b1x + u, then, for example: If male = 0 and hsgrad = 0 and colgrad = 0 y = b0 + b1x + u If male = 0 and hsgrad = 1 and colgrad = 0 y = b0 + d2hsgrad + b1x + u If male = 1 and hsgrad = 0 and colgrad = 1

8、y = b0 + d1male + d3colgrad + d5male*colgrad + b1x + u,9,Other Interactions with Dummies,Can also consider interacting a dummy variable, d, with a continuous variable, x y = b0 + d1d + b1x + d2d*x + u If d = 0, then y = b0 + b1x + u If d = 1, then y = (b0 + d1) + (b1+ d2) x + u This is interpreted a

9、s a change in the slope,10,y,x,y = b0 + b1x,y = (b0 + d0) + (b1 + d1) x,Example of d0 0 and d1 0,d = 1,d = 0,11,Testing for Differences Across Groups,Testing whether a regression function is different for one group versus another can be thought of as simply testing for the joint significance of the

10、dummy and its interactions with all other x variables So, you can estimate the model with all the interactions and without and form an F statistic, but this could be unwieldy,12,The Chow Test,Turns out you can compute the proper F statistic without running the unrestricted model with interactions wi

11、th all k continuous variables If run the restricted model for group one and get SSR1, then for group two and get SSR2 Run the restricted model for all to get SSR, then,13,The Chow Test (continued),The Chow test is really just a simple F test for exclusion restrictions, but weve realized that SSRur =

12、 SSR1 + SSR2 Note, we have k + 1 restrictions (each of the slope coefficients and the intercept) Note the unrestricted model would estimate 2 different intercepts and 2 different slope coefficients, so the df is n 2k 2,14,Linear Probability Model,P(y = 1|x) = E(y|x), when y is a binary variable, so

13、we can write our model as P(y = 1|x) = b0 + b1x1 + + bkxk So, the interpretation of bj is the change in the probability of success when xj changes The predicted y is the predicted probability of success Potential problem that can be outside 0,1,15,Linear Probability Model (cont),Even without predict

14、ions outside of 0,1, we may estimate effects that imply a change in x changes the probability by more than +1 or 1, so best to use changes near mean This model will violate assumption of homoskedasticity, so will affect inference Despite drawbacks, its usually a good place to start when y is binary,

15、16,Caveats on Program Evaluation,A typical use of a dummy variable is when we are looking for a program effect For example, we may have individuals that received job training, or welfare, etc We need to remember that usually individuals choose whether to participate in a program, which may lead to a self-selection problem,17,Self-selection Problems,If we can control for everything that is correlated with both part

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論