Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: the effects of changing the reference category Original citation: Dougherty,

Slides:



Advertisements
Similar presentations
CHOW TEST AND DUMMY VARIABLE GROUP TEST
Advertisements

EC220 - Introduction to econometrics (chapter 5)
EC220 - Introduction to econometrics (chapter 10)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: slope dummy variables Original citation: Dougherty, C. (2012) EC220 -
Christopher Dougherty EC220 - Introduction to econometrics (chapter 1) Slideshow: exercise 1.16 Original citation: Dougherty, C. (2012) EC220 - Introduction.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 2) Slideshow: testing a hypothesis relating to a regression coefficient Original citation:
Christopher Dougherty EC220 - Introduction to econometrics (chapter 4) Slideshow: interactive explanatory variables Original citation: Dougherty, C. (2012)
HETEROSCEDASTICITY-CONSISTENT STANDARD ERRORS 1 Heteroscedasticity causes OLS standard errors to be biased is finite samples. However it can be demonstrated.
EC220 - Introduction to econometrics (chapter 7)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 3) Slideshow: exercise 3.5 Original citation: Dougherty, C. (2012) EC220 - Introduction.
EC220 - Introduction to econometrics (chapter 2)
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: expected value of a function of a random variable Original citation:
Christopher Dougherty EC220 - Introduction to econometrics (chapter 6) Slideshow: variable misspecification iii: consequences for diagnostics Original.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 2) Slideshow: testing a hypothesis relating to a regression coefficient (2010/2011.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: confidence intervals Original citation: Dougherty, C. (2012) EC220.
EC220 - Introduction to econometrics (chapter 1)
1 INTERPRETATION OF A REGRESSION EQUATION The scatter diagram shows hourly earnings in 2002 plotted against years of schooling, defined as highest grade.
EC220 - Introduction to econometrics (review chapter)
TESTING A HYPOTHESIS RELATING TO A REGRESSION COEFFICIENT This sequence describes the testing of a hypotheses relating to regression coefficients. It is.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: continuous random variables Original citation: Dougherty, C. (2012)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 3) Slideshow: prediction Original citation: Dougherty, C. (2012) EC220 - Introduction.
SLOPE DUMMY VARIABLES 1 The scatter diagram shows the data for the 74 schools in Shanghai and the cost functions derived from a regression of COST on N.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 3) Slideshow: precision of the multiple regression coefficients Original citation:
Christopher Dougherty EC220 - Introduction to econometrics (chapter 4) Slideshow: semilogarithmic models Original citation: Dougherty, C. (2012) EC220.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 4) Slideshow: nonlinear regression Original citation: Dougherty, C. (2012) EC220 -
Christopher Dougherty EC220 - Introduction to econometrics (chapter 10) Slideshow: maximum likelihood estimation of regression coefficients Original citation:
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: Chow test Original citation: Dougherty, C. (2012) EC220 - Introduction.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: the normal distribution Original citation: Dougherty, C. (2012)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: dummy variable classification with two categories Original citation:
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: two sets of dummy variables Original citation: Dougherty, C. (2012) EC220.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: dummy classification with more than two categories Original citation:
DUMMY CLASSIFICATION WITH MORE THAN TWO CATEGORIES This sequence explains how to extend the dummy variable technique to handle a qualitative explanatory.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 10) Slideshow: Tobit models Original citation: Dougherty, C. (2012) EC220 - Introduction.
1 INTERACTIVE EXPLANATORY VARIABLES The model shown above is linear in parameters and it may be fitted using straightforward OLS, provided that the regression.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: conflicts between unbiasedness and minimum variance Original citation:
Christopher Dougherty EC220 - Introduction to econometrics (chapter 8) Slideshow: measurement error Original citation: Dougherty, C. (2012) EC220 - Introduction.
1 TWO SETS OF DUMMY VARIABLES The explanatory variables in a regression model may include multiple sets of dummy variables. This sequence provides an example.
Confidence intervals were treated at length in the Review chapter and their application to regression analysis presents no problems. We will not repeat.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 7) Slideshow: weighted least squares and logarithmic regressions Original citation:
1 PROXY VARIABLES Suppose that a variable Y is hypothesized to depend on a set of explanatory variables X 2,..., X k as shown above, and suppose that for.
F TEST OF GOODNESS OF FIT FOR THE WHOLE EQUATION 1 This sequence describes two F tests of goodness of fit in a multiple regression model. The first relates.
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE 1 This sequence provides a geometrical interpretation of a multiple regression model with two.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 12) Slideshow: footnote: the Cochrane-Orcutt iterative process Original citation: Dougherty,
Christopher Dougherty EC220 - Introduction to econometrics (chapter 1) Slideshow: exercise 1.5 Original citation: Dougherty, C. (2012) EC220 - Introduction.
Simple regression model: Y =  1 +  2 X + u 1 We have seen that the regression coefficients b 1 and b 2 are random variables. They provide point estimates.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 9) Slideshow: instrumental variable estimation: variation Original citation: Dougherty,
. reg LGEARN S WEIGHT85 Source | SS df MS Number of obs = F( 2, 537) = Model |
Christopher Dougherty EC220 - Introduction to econometrics (chapter 6) Slideshow: multiple restrictions and zero restrictions Original citation: Dougherty,
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: exercise 5.2 Original citation: Dougherty, C. (2012) EC220 - Introduction.
Chapter 5: Dummy Variables. DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES 1 We’ll now examine how you can include qualitative explanatory variables.
(1)Combine the correlated variables. 1 In this sequence, we look at four possible indirect methods for alleviating a problem of multicollinearity. POSSIBLE.
COST 11 DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES 1 This sequence explains how you can include qualitative explanatory variables in your regression.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: alternative expression for population variance Original citation:
RAMSEY’S RESET TEST OF FUNCTIONAL MISSPECIFICATION 1 Ramsey’s RESET test of functional misspecification is intended to provide a simple indicator of evidence.
1 CHANGES IN THE UNITS OF MEASUREMENT Suppose that the units of measurement of Y or X are changed. How will this affect the regression results? Intuitively,
SEMILOGARITHMIC MODELS 1 This sequence introduces the semilogarithmic model and shows how it may be applied to an earnings function. The dependent variable.
GRAPHING A RELATIONSHIP IN A MULTIPLE REGRESSION MODEL The output above shows the result of regressing EARNINGS, hourly earnings in dollars, on S, years.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 2) Slideshow: confidence intervals Original citation: Dougherty, C. (2012) EC220 -
1 REPARAMETERIZATION OF A MODEL AND t TEST OF A LINEAR RESTRICTION Linear restrictions can also be tested using a t test. This involves the reparameterization.
F TESTS RELATING TO GROUPS OF EXPLANATORY VARIABLES 1 We now come to more general F tests of goodness of fit. This is a test of the joint explanatory power.
WHITE TEST FOR HETEROSCEDASTICITY 1 The White test for heteroscedasticity looks for evidence of an association between the variance of the disturbance.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: independence of two random variables Original citation: Dougherty,
1 COMPARING LINEAR AND LOGARITHMIC SPECIFICATIONS When alternative specifications of a regression model have the same dependent variable, R 2 can be used.
VARIABLE MISSPECIFICATION II: INCLUSION OF AN IRRELEVANT VARIABLE In this sequence we will investigate the consequences of including an irrelevant variable.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 1) Slideshow: simple regression model Original citation: Dougherty, C. (2012) EC220.
VARIABLE MISSPECIFICATION I: OMISSION OF A RELEVANT VARIABLE In this sequence and the next we will investigate the consequences of misspecifying the regression.
Introduction to Econometrics, 5th edition
Introduction to Econometrics, 5th edition
Introduction to Econometrics, 5th edition
Introduction to Econometrics, 5th edition
Presentation transcript:

Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: the effects of changing the reference category Original citation: Dougherty, C. (2012) EC220 - Introduction to econometrics (chapter 5). [Teaching Resource] © 2012 The Author This version available at: Available in LSE Learning Resources Online: May 2012 This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. This license allows the user to remix, tweak, and build upon the work even for commercial purposes, as long as the user credits the author and licenses their new creations under the identical terms

THE EFFECTS OF CHANGING THE REFERENCE CATEGORY 1 In the previous sequence we chose general academic schools as the reference (omitted) category and defined dummy variables for the other categories.

THE EFFECTS OF CHANGING THE REFERENCE CATEGORY 2 This enabled us to compare the overhead costs of the other schools with those of general schools and to test whether the differences were significant.

THE EFFECTS OF CHANGING THE REFERENCE CATEGORY 3 However, suppose that we were interested in testing whether the overhead costs of skilled workers’ schools were different from those of the other types of school. How could we do this?

THE EFFECTS OF CHANGING THE REFERENCE CATEGORY 4 It is possible to perform a t test using the variance-covariance matrix of the regression coefficients to calculate the relevant standard errors. But it is a pain and it is easy to make arithmetical errors.

THE EFFECTS OF CHANGING THE REFERENCE CATEGORY 5 It is much simpler to re-run the regression making skilled workers’ schools the reference category. Now we need to define a dummy variable GEN for the general schools.

6 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY The model is shown in equation form. Note that there is no longer a dummy variable for skilled workers’ schools since they form the reference category. COST =  1  +  T TECH +  V VOC +  G GEN +  2 N + u

7 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY In the case of observations relating to skilled workers’ schools, all the dummy variables are 0 and the model simplifies to the intercept and the term involving N. COST =  1  +  T TECH +  V VOC +  G GEN +  2 N + u Skilled Workers' SchoolCOST =  1  +  2 N + u (TECH = VOC = GEN = 0)

8 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY In the case of observations relating to technical schools, TECH is equal to 1 and the intercept increases by an amount  T. COST =  1  +  T TECH +  V VOC +  G GEN +  2 N + u Skilled Workers' SchoolCOST =  1  +  2 N + u (TECH = VOC = GEN = 0) Technical SchoolCOST = (  1  +  T ) +  2 N + u (TECH = 1; VOC = GEN = 0)

THE EFFECTS OF CHANGING THE REFERENCE CATEGORY COST =  1  +  T TECH +  V VOC +  G GEN +  2 N + u Skilled Workers' SchoolCOST =  1  +  2 N + u (TECH = VOC = GEN = 0) Technical SchoolCOST = (  1  +  T ) +  2 N + u (TECH = 1; VOC = GEN = 0) 9 Note that  T should now be interpreted as the extra overhead cost of a technical school relative to that of a skilled workers’ school.

10 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY COST =  1  +  T TECH +  V VOC +  G GEN +  2 N + u Skilled Workers' SchoolCOST =  1  +  2 N + u (TECH = VOC = GEN = 0) Technical SchoolCOST = (  1  +  T ) +  2 N + u (TECH = 1; VOC = GEN = 0) Vocational SchoolCOST = (  1  +  V ) +  2 N + u (VOC = 1; TECH = GEN = 0) General SchoolCOST = (  1  +  G ) +  2 N + u (GEN = 1; TECH = VOC = 0) Similarly one can derive the implicit cost functions for vocational and general schools, their  coefficients also being interpreted as their extra overhead costs relative to those of skilled workers’ schools.

11 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY This diagram illustrates the model graphically. Note that the  shifts are measured from the line for skilled workers’ schools. COST N 1+T1+T 1+V1+V Technical Workers’ Vocational General GG VV TT 11 1+G1+G

12 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY Here are the data for the first 10 of the 74 schools with skilled workers’ schools as the reference category. School TypeCOST N TECH VOCGEN 1Technical345, Technical 537, General 170, Workers’ General 100, Vocational 28, Vocational 160, Technical 45, Technical 120, Workers’ 61,

. reg COST N TECH VOC GEN Source | SS df MS Number of obs = F( 4, 69) = Model | e e+11 Prob > F = Residual | e e+09 R-squared = Adj R-squared = Total | e e+10 Root MSE = COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | VOC | GEN | _cons | THE EFFECTS OF CHANGING THE REFERENCE CATEGORY Here is the Stata output for the regression. We will focus first on the regression coefficients.

14 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY The regression result is shown written as an equation. ^ COST = 88, ,000TECH – 90,000VOC – 143,000GEN + 343N

15 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY Putting all the dummy variables equal to 0, we obtain the equation for the reference category, the skilled workers’ schools. ^ COST = 88, ,000TECH – 90,000VOC – 143,000GEN + 343N Skilled Workers' SchoolCOST= 88, N (TECH = VOC = GEN = 0) ^

16 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY Putting TECH equal to 1 and VOC and GEN equal to 0, we obtain the equation for the technical schools. ^ ^ COST = 88, ,000TECH – 90,000VOC – 143,000GEN + 343N Skilled Workers' SchoolCOST= 88, N (TECH = VOC = GEN = 0) Technical SchoolCOST= 88, , N (TECH = 1; VOC = GEN = 0) = 99, N ^

17 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY And similarly we obtain the equations for the vocational and general schools, putting VOC and GEN equal to 1 in turn. ^ ^ ^ ^ COST = 88, ,000TECH – 90,000VOC – 143,000GEN + 343N Skilled Workers' SchoolCOST= 88, N (TECH = VOC = GEN = 0) Technical SchoolCOST= 88, , N (TECH = 1; VOC = GEN = 0) = 99, N Vocational SchoolCOST= 88,000 – 90, N (VOC = 1; TECH = GEN = 0) = –2, N General SchoolCOST= 88,000 – 143, N (GEN = 1; TECH = VOC = 0) = –55, N ^

18 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY Note that the cost functions turn out to be exactly the same as when we used general schools as the reference category. COST = 88, ,000TECH – 90,000VOC – 143,000GEN + 343N Skilled Workers' SchoolCOST= 88, N (TECH = VOC = GEN = 0) Technical SchoolCOST= 88, , N (TECH = 1; VOC = GEN = 0) = 99, N Vocational SchoolCOST= 88,000 – 90, N (VOC = 1; TECH = GEN = 0) = –2, N General SchoolCOST= 88,000 – 143, N (GEN = 1; TECH = VOC = 0) = –55, N ^ ^ ^ ^ ^

19 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY Consequently the scatter diagram with regression lines is exactly the same as before.

20 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY The goodness of fit, whether measured by R 2, RSS, or the standard error of the regression (the estimate of the standard deviation of u, here denoted Root MSE), is likewise not affected by the change.. reg COST N TECH VOC GEN Source | SS df MS Number of obs = F( 4, 69) = Model | e e+11 Prob > F = Residual | e e+09 R-squared = Adj R-squared = Total | e e+10 Root MSE = COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | VOC | GEN | _cons |

21 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY But the t tests are affected. In particular, the meaning of a null hypothesis for a dummy variable coefficient being equal to 0 is different.. reg COST N TECH VOC GEN Source | SS df MS Number of obs = F( 4, 69) = Model | e e+11 Prob > F = Residual | e e+09 R-squared = Adj R-squared = Total | e e+10 Root MSE = COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | VOC | GEN | _cons |

22 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY For example, the t statistic for the technical school coefficient is for the null hypothesis that the overhead costs of technical schools are the same as those of skilled workers’ schools.. reg COST N TECH VOC GEN Source | SS df MS Number of obs = F( 4, 69) = Model | e e+11 Prob > F = Residual | e e+09 R-squared = Adj R-squared = Total | e e+10 Root MSE = COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | VOC | GEN | _cons |

23 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY The t ratio in question is only 0.35, so the null hypothesis is not rejected.. reg COST N TECH VOC GEN Source | SS df MS Number of obs = F( 4, 69) = Model | e e+11 Prob > F = Residual | e e+09 R-squared = Adj R-squared = Total | e e+10 Root MSE = COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | VOC | GEN | _cons |

24 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY The t ratio for the coefficient of VOC is –2.65, so one concludes that the overheads of vocational schools are significantly lower than those of skilled workers’ schools, at the 1% significance level.. reg COST N TECH VOC GEN Source | SS df MS Number of obs = F( 4, 69) = Model | e e+11 Prob > F = Residual | e e+09 R-squared = Adj R-squared = Total | e e+10 Root MSE = COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | VOC | GEN | _cons |

25 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY General schools clearly have lower overhead costs than the skilled workers’ schools, according to the regression.. reg COST N TECH VOC GEN Source | SS df MS Number of obs = F( 4, 69) = Model | e e+11 Prob > F = Residual | e e+09 R-squared = Adj R-squared = Total | e e+10 Root MSE = COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | VOC | GEN | _cons |

26 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY Note that there are some differences in the standard errors. The standard error of the coefficient of N is unaffected.. reg COST N TECH WORKER VOC COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | WORKER | VOC | _cons | reg COST N TECH VOC GEN COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | VOC | GEN | _cons |

27 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY The one test involving the dummy variables that can be performed with either specification is the test of whether the overhead costs of general schools and skilled workers’ schools are different.. reg COST N TECH WORKER VOC COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | WORKER | VOC | _cons | reg COST N TECH VOC GEN COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | VOC | GEN | _cons |

28 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY The choice of specification can make no difference to the outcome of this test. The only difference is caused by the fact that the regression coefficient has become negative in the second specification.. reg COST N TECH WORKER VOC COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | WORKER | VOC | _cons | reg COST N TECH VOC GEN COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | VOC | GEN | _cons |

29 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY The standard error is the same, so the t statistic has the same absolute magnitude and the outcome of the test must be the same.. reg COST N TECH WORKER VOC COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | WORKER | VOC | _cons | reg COST N TECH VOC GEN COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | VOC | GEN | _cons |

30 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY However the standard errors of the coefficients of the other dummy variables are slightly larger in the second specification.. reg COST N TECH WORKER VOC COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | WORKER | VOC | _cons | reg COST N TECH VOC GEN COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | VOC | GEN | _cons |

31 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY This is because the skilled workers’ schools are less ‘normal’ or ‘basic’ than the general schools and there are fewer of them in the sample (only 17, as opposed to 28).. reg COST N TECH WORKER VOC COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | WORKER | VOC | _cons | reg COST N TECH VOC GEN COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | VOC | GEN | _cons |

32 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY As a consequence there is less precision in measuring the difference between their costs and those of the other schools than there was when general schools were the reference category.. reg COST N TECH WORKER VOC COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | WORKER | VOC | _cons | reg COST N TECH VOC GEN COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | TECH | VOC | GEN | _cons |

Copyright Christopher Dougherty These slideshows may be downloaded by anyone, anywhere for personal use. Subject to respect for copyright and, where appropriate, attribution, they may be used as a resource for teaching an econometrics course. There is no need to refer to the author. The content of this slideshow comes from Section 5.2 of C. Dougherty, Introduction to Econometrics, fourth edition 2011, Oxford University Press. Additional (free) resources for both students and instructors may be downloaded from the OUP Online Resource Centre Individuals studying econometrics on their own and who feel that they might benefit from participation in a formal course should consider the London School of Economics summer school course EC212 Introduction to Econometrics or the University of London International Programmes distance learning course 20 Elements of Econometrics