Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Econometrics, 5th edition

Similar presentations


Presentation on theme: "Introduction to Econometrics, 5th edition"— Presentation transcript:

1 Introduction to Econometrics, 5th edition
Type author name/s here Dougherty Introduction to Econometrics, 5th edition Chapter heading Chapter 5: Dummy Variables © Christopher Dougherty, All rights reserved.

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

3 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY
COST N 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. 2

4 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY
COST N 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? 3

5 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY
COST N 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. 4

6 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY
COST N 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. 5

7 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY
COST = b1 + dTTECH + dVVOC + dGGEN + b2N + u 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. 6

8 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY
COST = b1 + dTTECH + dVVOC + dGGEN + b2N + u Skilled workers' school (TECH = VOC = GEN = 0) COST = b1 + b2N + u 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. 7

9 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY
COST = b1 + dTTECH + dVVOC + dGGEN + b2N + u Skilled workers' school (TECH = VOC = GEN = 0) COST = b1 + b2N + u Technical school (TECH = 1; VOC = GEN = 0) COST = (b1 + dT) + b2N + u In the case of observations relating to technical schools, TECH is equal to 1 and the intercept increases by an amount dT. 8

10 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY
COST = b1 + dTTECH + dVVOC + dGGEN + b2N + u Skilled workers' school (TECH = VOC = GEN = 0) COST = b1 + b2N + u Technical school (TECH = 1; VOC = GEN = 0) COST = (b1 + dT) + b2N + u Note that dT should now be interpreted as the extra overhead cost of a technical school relative to that of a skilled workers’ school. 9

11 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY
COST = b1 + dTTECH + dVVOC + dGGEN + b2N + u Skilled workers' school (TECH = VOC = GEN = 0) COST = b1 + b2N + u Technical school (TECH = 1; VOC = GEN = 0) COST = (b1 + dT) + b2N + u Vocational school (VOC = 1; TECH = GEN = 0) COST = (b1 + dV) + b2N + u General school (GEN = 1; TECH = VOC = 0) COST = (b1 + dG) + b2N + u Similarly one can derive the implicit cost functions for vocational and general schools, their d coefficients also being interpreted as their extra overhead costs relative to those of skilled workers’ schools. 10

12 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY
COST Technical dT b1+dT dG dV b1 Workers’ Vocational b1+dV b1+dG General N This diagram illustrates the model graphically. Note that the d shifts are measured from the line for skilled workers’ schools. 11

13 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY
School Type COST N TECH VOC GEN 1 Technical 345, 2 Technical 537, 3 General 170, 4 Workers’ 5 General 100, 6 Vocational 28, 7 Vocational 160, 8 Technical 45, 9 Technical 120, 10 Workers’ 61, Here are the data for the first 10 of the 74 schools with skilled workers’ schools as the reference category. 12

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

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

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

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

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

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

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

21 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY
. reg COST N TECH VOC GEN Source | SS df MS Number of obs = F( 4, 69) = Model | e e Prob > F = Residual | e e R-squared = Adj R-squared = Total | e e Root MSE = COST | Coef. Std. Err t P>|t| [95% Conf. Interval] N | TECH | VOC | GEN | _cons | The goodness of fit, whether measured by R2, 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. 20

22 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY
. reg COST N TECH VOC GEN Source | SS df MS Number of obs = F( 4, 69) = Model | e e Prob > F = Residual | e e R-squared = Adj R-squared = Total | e e Root MSE = COST | Coef. Std. Err t P>|t| [95% Conf. Interval] N | TECH | VOC | GEN | _cons | 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. 21

23 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY
. reg COST N TECH VOC GEN Source | SS df MS Number of obs = F( 4, 69) = Model | e e Prob > F = Residual | e e R-squared = Adj R-squared = Total | e e Root MSE = COST | Coef. Std. Err t P>|t| [95% Conf. Interval] N | TECH | VOC | GEN | _cons | 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. 22

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

25 THE EFFECTS OF CHANGING THE REFERENCE CATEGORY
. reg COST N TECH VOC GEN Source | SS df MS Number of obs = F( 4, 69) = Model | e e Prob > F = Residual | e e R-squared = Adj R-squared = Total | e e Root MSE = COST | Coef. Std. Err t P>|t| [95% Conf. Interval] N | TECH | VOC | GEN | _cons | 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. 24

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

27 THE EFFECTS OF CHANGING 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 | Note that there are some differences in the standard errors. The standard error of the coefficient of N is unaffected. 26

28 THE EFFECTS OF CHANGING 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 | 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. 27

29 THE EFFECTS OF CHANGING 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 | 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. 28

30 THE EFFECTS OF CHANGING 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 | 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. 29

31 THE EFFECTS OF CHANGING 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 | However the standard errors of the coefficients of the other dummy variables are slightly larger in the second specification. 30

32 THE EFFECTS OF CHANGING 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 | 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). 31

33 THE EFFECTS OF CHANGING 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 | 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. 32

34 Copyright Christopher Dougherty 2016.
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, fifth edition 2016, 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 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 EC2020 Elements of Econometrics


Download ppt "Introduction to Econometrics, 5th edition"

Similar presentations


Ads by Google