EC220 - Introduction to econometrics (chapter 14)

Slides:



Advertisements
Similar presentations
EC220 - Introduction to econometrics (chapter 2)
Advertisements

EC220 - Introduction to econometrics (chapter 14)
EC220 - Introduction to econometrics (chapter 1)
1 Although they are biased in finite samples if Part (2) of Assumption C.7 is violated, OLS estimators are consistent if Part (1) is valid. We will demonstrate.
EC220 - Introduction to econometrics (chapter 13)
ADAPTIVE EXPECTATIONS 1 The dynamics in the partial adjustment model are attributable to inertia, the drag of the past. Another, completely opposite, source.
EXPECTED VALUE RULES 1. This sequence states the rules for manipulating expected values. First, the additive rule. The expected value of the sum of two.
ADAPTIVE EXPECTATIONS: FRIEDMAN'S PERMANENT INCOME HYPOTHESIS
EC220 - Introduction to econometrics (chapter 11)
1 SIMULTANEOUS EQUATIONS MODELS Most of the issues relating to the fitting of simultaneous equations models with time series data are similar to those.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: the central limit theorem Original citation: Dougherty, C. (2012)
EC220 - Introduction to econometrics (chapter 2)
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: probability distribution example: x is the sum of two dice Original.
EC220 - Introduction to econometrics (chapter 14)
EC220 - Introduction to econometrics (review chapter)
EC220 - Introduction to econometrics (chapter 11)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 9) Slideshow: two-stage least squares Original citation: Dougherty, C. (2012) EC220.
EC220 - Introduction to econometrics (review chapter)
EC220 - Introduction to econometrics (chapter 8)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 12) Slideshow: consequences of autocorrelation Original citation: Dougherty, C. (2012)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 11) Slideshow: model c assumptions Original citation: Dougherty, C. (2012) EC220 -
EC220 - Introduction to econometrics (chapter 8)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 8) Slideshow: model b: properties of the regression coefficients Original citation:
Christopher Dougherty EC220 - Introduction to econometrics (chapter 2) Slideshow: one-sided t tests Original citation: Dougherty, C. (2012) EC220 - Introduction.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: one-sided t tests Original citation: Dougherty, C. (2012) EC220.
EC220 - Introduction to econometrics (chapter 1)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 8) Slideshow: Friedman’s critique of OLS estimation of the consumption function Original.
THE ERROR CORRECTION MODEL 1 The error correction model is a variant of the partial adjustment model. As with the partial adjustment model, we assume a.
1 MAXIMUM LIKELIHOOD ESTIMATION OF REGRESSION COEFFICIENTS X Y XiXi 11  1  +  2 X i Y =  1  +  2 X We will now apply the maximum likelihood principle.
MODELS WITH A LAGGED DEPENDENT VARIABLE
EC220 - Introduction to econometrics (chapter 6)
EC220 - Introduction to econometrics (chapter 3)
EC220 - Introduction to econometrics (chapter 4)
Definition of, the expected value of a function of X : 1 EXPECTED VALUE OF A FUNCTION OF A RANDOM VARIABLE To find the expected value of a function of.
1 This very short sequence presents an important definition, that of the independence of two random variables. Two random variables X and Y are said to.
EC220 - Introduction to econometrics (review chapter)
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: asymptotic properties of estimators: the use of simulation Original.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: expected value of a random variable Original citation: Dougherty,
Christopher Dougherty EC220 - Introduction to econometrics (chapter 2) Slideshow: exercise 2.16 Original citation: Dougherty, C. (2012) EC220 - Introduction.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: population variance of a discreet random variable Original citation:
EC220 - Introduction to econometrics (chapter 5)
The third sequence defined the expected value of a function of a random variable X. There is only one function that is of much interest to us, at least.
CHOW TEST AND DUMMY VARIABLE GROUP TEST
EC220 - Introduction to econometrics (chapter 5)
EC220 - Introduction to econometrics (chapter 10)
EC220 - Introduction to econometrics (chapter 4)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 2) Slideshow: a Monte Carlo experiment Original citation: Dougherty, C. (2012) EC220.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 11) Slideshow: adaptive expectations Original citation: Dougherty, C. (2012) EC220.
Random effects estimation RANDOM EFFECTS REGRESSIONS When the observed variables of interest are constant for each individual, a fixed effects regression.
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 3) Slideshow: prediction Original citation: Dougherty, C. (2012) EC220 - Introduction.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 10) Slideshow: maximum likelihood estimation of regression coefficients Original citation:
DERIVING LINEAR REGRESSION COEFFICIENTS
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: the normal distribution Original citation: Dougherty, C. (2012)
EC220 - Introduction to econometrics (review chapter)
FIXED EFFECTS REGRESSIONS: WITHIN-GROUPS METHOD The two main approaches to the fitting of models using panel data are known, for reasons that will be explained.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: sampling and estimators Original citation: Dougherty, C. (2012)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: the effects of changing the reference category Original citation: Dougherty,
Christopher Dougherty EC220 - Introduction to econometrics (chapter 12) Slideshow: autocorrelation, partial adjustment, and adaptive expectations Original.
THE DUMMY VARIABLE TRAP 1 Suppose that you have a regression model with Y depending on a set of ordinary variables X 2,..., X k and a qualitative variable.
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: conflicts between unbiasedness and minimum variance Original citation:
Christopher Dougherty EC220 - Introduction to econometrics (chapter 11) Slideshow: Friedman Original citation: Dougherty, C. (2012) EC220 - Introduction.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 12) Slideshow: footnote: the Cochrane-Orcutt iterative process Original citation: Dougherty,
1 REGRESSION ANALYSIS WITH PANEL DATA: INTRODUCTION A panel data set, or longitudinal data set, is one where there are repeated observations on the same.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 9) Slideshow: instrumental variable estimation: variation Original citation: Dougherty,
Christopher Dougherty EC220 - Introduction to econometrics (chapter 6) Slideshow: multiple restrictions and zero restrictions Original citation: Dougherty,
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: alternative expression for population variance Original citation:
Christopher Dougherty EC220 - Introduction to econometrics (review chapter) Slideshow: independence of two random variables Original citation: Dougherty,
Christopher Dougherty EC220 - Introduction to econometrics (chapter 1) Slideshow: simple regression model Original citation: Dougherty, C. (2012) EC220.
Presentation transcript:

EC220 - Introduction to econometrics (chapter 14) Christopher Dougherty EC220 - Introduction to econometrics (chapter 14) Slideshow: fixed effects regressions: LSDV method   Original citation: Dougherty, C. (2012) EC220 - Introduction to econometrics (chapter 14). [Teaching Resource] © 2012 The Author This version available at: http://learningresources.lse.ac.uk/140/ 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. http://creativecommons.org/licenses/by-sa/3.0/   http://learningresources.lse.ac.uk/

FIXED EFFECTS REGRESSIONS: LSDV METHOD Fixed effects estimation (least squares dummy variable method) In the third version of the fixed effects approach, known as the least squares dummy variable (LSDV) method, the unobserved effect is brought explicitly into the model. 1

FIXED EFFECTS REGRESSIONS: LSDV METHOD Fixed effects estimation (least squares dummy variable method) If we define a set of dummy variables Ai, where Ai is equal to 1 in the case of an observation relating to individual i and 0 otherwise, the model can be rewritten as shown. 2

FIXED EFFECTS REGRESSIONS: LSDV METHOD Fixed effects estimation (least squares dummy variable method) Formally, the unobserved effect is now being treated as the coefficient of the individual-specific dummy variable, the aiAi term representing a fixed effect on the dependent variable Yi for individual i (this accounts for the name given to the fixed effects approach). 3

FIXED EFFECTS REGRESSIONS: LSDV METHOD Fixed effects estimation (least squares dummy variable method) Having re-specified the model in this way, it can be fitted using OLS. 4

FIXED EFFECTS REGRESSIONS: LSDV METHOD Fixed effects estimation (least squares dummy variable method) Note that if we include a dummy variable for every individual in the sample as well as an intercept, we will fall into the dummy variable trap. 5

FIXED EFFECTS REGRESSIONS: LSDV METHOD Fixed effects estimation (least squares dummy variable method) To avoid this, we can define one individual to be the reference category, so that b1 is its intercept, and then treat the ai as the shifts in the intercept for the other individuals. 6

FIXED EFFECTS REGRESSIONS: LSDV METHOD Fixed effects estimation (least squares dummy variable method) However, the choice of reference category is often arbitrary and accordingly the interpretation of the ai not particularly illuminating. 7

FIXED EFFECTS REGRESSIONS: LSDV METHOD Fixed effects estimation (least squares dummy variable method) Alternatively, we can drop the b1 intercept and define dummy variables for all of the individuals, as has been done here. The ai now become the intercepts for each of the individuals. 8

FIXED EFFECTS REGRESSIONS: LSDV METHOD Fixed effects estimation (least squares dummy variable method) Note that, in common with the first two versions of the fixed effects approach, the LSDV method requires panel data. 9

FIXED EFFECTS REGRESSIONS: LSDV METHOD Fixed effects estimation (least squares dummy variable method) With cross-sectional data, one would be defining a dummy variable for every observation, exhausting the degrees of freedom. The dummy variables on their own would give a perfect but meaningless fit. 10

FIXED EFFECTS REGRESSIONS: LSDV METHOD Fixed effects estimation (least squares dummy variable method) If there are a large number of individuals, using the LSDV method directly is not a practical proposition, given the need for a large number of dummy variables. 11

FIXED EFFECTS REGRESSIONS: LSDV METHOD Fixed effects estimation (least squares dummy variable method) Equivalent to within-groups method: However, it can be shown mathematically that the approach is equivalent to the within-groups method and therefore yields precisely the same estimates. 12

FIXED EFFECTS REGRESSIONS: LSDV METHOD Fixed effects estimation (least squares dummy variable method) Equivalent to within-groups method: Thus in practice we always use the within-groups method rather than the LSDV method. But it may be useful to know that the within-groups method is equivalent to modelling the fixed effects with dummy variables. 13

FIXED EFFECTS REGRESSIONS: LSDV METHOD Fixed effects estimation (least squares dummy variable method) Equivalent to within-groups method: The only apparent difference between the LSDV and within-groups methods is in the number of degrees of freedom. It is easy to see from the LSDV specification that there are nT – k – n degrees of freedom if the panel is balanced. 14

FIXED EFFECTS REGRESSIONS: LSDV METHOD Fixed effects estimation (least squares dummy variable method) Equivalent to within-groups method: In the within-groups approach, it seemed at first that there were nT – k. However n degrees of freedom are consumed in the manipulation that eliminate the ai, so the number of degrees of freedom is really nT – k – n. 15

FIXED EFFECTS REGRESSIONS: LSDV METHOD NLSY 1980–1996 Dependent variable logarithm of hourly earnings OLS Fixed effects Married 0.184 0.106 – (0.007) (0.012) Soon-to-be- 0.096 0.045 –0.061 married (0.009) (0.010) (0.008) Single – – –0.106 (0.012) R2 0.358 0.268 0.268 n 20,343 20,343 20,343 To illustrate the use of a fixed effects model, we return to the example in Section 1 and use all the available data from 1980 to 1996, 20,343 observations in all. 16

FIXED EFFECTS REGRESSIONS: LSDV METHOD NLSY 1980–1996 Dependent variable logarithm of hourly earnings OLS Fixed effects Married 0.184 0.106 – (0.007) (0.012) Soon-to-be- 0.096 0.045 –0.061 married (0.009) (0.010) (0.008) Single – – –0.106 (0.012) R2 0.358 0.268 0.268 n 20,343 20,343 20,343 The table shows the extra hourly earnings of married men and of men who are single but married within the next four years. The omitted category in the first two columns is single men who are still single four years later. 17

FIXED EFFECTS REGRESSIONS: LSDV METHOD NLSY 1980–1996 Dependent variable logarithm of hourly earnings OLS Fixed effects Married 0.184 0.106 – (0.007) (0.012) Soon-to-be- 0.096 0.045 –0.061 married (0.009) (0.010) (0.008) Single – – –0.106 (0.012) R2 0.358 0.268 0.268 n 20,343 20,343 20,343 The controls (not shown) are the same as in the example in the first slideshow on panel data. 18

FIXED EFFECTS REGRESSIONS: LSDV METHOD NLSY 1980–1996 Dependent variable logarithm of hourly earnings OLS Fixed effects Married 0.184 0.106 – (0.007) (0.012) Soon-to-be- 0.096 0.045 –0.061 married (0.009) (0.010) (0.008) Single – – –0.106 (0.012) R2 0.358 0.268 0.268 n 20,343 20,343 20,343 The first column gives the estimates obtained by simply pooling the observations and using OLS with robust standard errors. The estimates are very similar to those in the wage equation for 1988 in the example in the first slideshow on panel data. 19

FIXED EFFECTS REGRESSIONS: LSDV METHOD NLSY 1980–1996 Dependent variable logarithm of hourly earnings OLS Fixed effects Married 0.184 0.106 – (0.007) (0.012) Soon-to-be- 0.096 0.045 –0.061 married (0.009) (0.010) (0.008) Single – – –0.106 (0.012) R2 0.358 0.268 0.268 n 20,343 20,343 20,343 The second column gives the fixed effects estimates, using the within-groups method, with single men as the reference category. The third gives the fixed effects estimates with married men as the reference category. 20

FIXED EFFECTS REGRESSIONS: LSDV METHOD NLSY 1980–1996 Dependent variable logarithm of hourly earnings OLS Fixed effects Married 0.184 0.106 – (0.007) (0.012) Soon-to-be- 0.096 0.045 –0.061 married (0.009) (0.010) (0.008) Single – – –0.106 (0.012) R2 0.358 0.268 0.268 n 20,343 20,343 20,343 The fixed effects estimates are considerably lower than the OLS estimates, suggesting that the OLS estimates were inflated by unobserved heterogeneity. Nevertheless the pattern is the same. 21

FIXED EFFECTS REGRESSIONS: LSDV METHOD NLSY 1980–1996 Dependent variable logarithm of hourly earnings OLS Fixed effects Married 0.184 0.106 – (0.007) (0.012) Soon-to-be- 0.096 0.045 –0.061 married (0.009) (0.010) (0.008) Single – – –0.106 (0.012) R2 0.358 0.268 0.268 n 20,343 20,343 20,343 Our findings confirm that married men earn more than single men. Part of the differential appears to be attributable to the characteristics of married men, since men who are soon-to-marry but still single also enjoy a significant earnings premium. 22

FIXED EFFECTS REGRESSIONS: LSDV METHOD NLSY 1980–1996 Dependent variable logarithm of hourly earnings OLS Fixed effects Married 0.184 0.106 – (0.007) (0.012) Soon-to-be- 0.096 0.045 –0.061 married (0.009) (0.010) (0.008) Single – – –0.106 (0.012) R2 0.358 0.268 0.268 n 20,343 20,343 20,343 However if we make married men the omitted category, as in the third column, we find that soon-to-be-married men earn significantly less than married men. Thus part of the marriage premium appears to be attributable to the effect of marriage itself. 23

FIXED EFFECTS REGRESSIONS: LSDV METHOD NLSY 1980–1996 Dependent variable logarithm of hourly earnings OLS Fixed effects Married 0.184 0.106 – (0.007) (0.012) Soon-to-be- 0.096 0.045 –0.061 married (0.009) (0.010) (0.008) Single – – –0.106 (0.012) R2 0.358 0.268 0.268 n 20,343 20,343 20,343 Hence both hypotheses relating to the marriage premium appear to be partly true. 24

Copyright Christopher Dougherty 2011. 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 14.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 http://www.oup.com/uk/orc/bin/9780199567089/. 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 http://www2.lse.ac.uk/study/summerSchools/summerSchool/Home.aspx or the University of London International Programmes distance learning course 20 Elements of Econometrics www.londoninternational.ac.uk/lse. 11.07.25