1 of 34

1

Webinar Series in Applied Quantitative Analysis - Updated

Date

Topic

�February 29�March 7

Session One�Potential Outcomes and Omitted Variable Bias I (Theory) �Potential Outcomes and Omitted Variable Bias II (Application)

�March 21�March 28

Session TwoDifference-in-differences I (Theory)�Difference-in-differences II (Application)

�April 25�May 2

Session ThreePower analysis, clustering and sample size calculations I (Theory)�Power analysis, clustering and sample size calculations II (Application)

 

May 23�May 30

Session FourPropensity score matching (Theory)�Propensity score matching (Application)

�June 20�June 27

Session FiveFixed-effects I (Theory)�Fixed-effects II (Application)

�July 25�August 1

Session SixInstrumental variables I (Theory)�Instrumental Variables II (Application)

 

August 22

August 29

Session SevenLagged dependent variables and the Arellano-Bond Estimator I (Theory)�Lagged dependent variables and the Arellano-Bond Estimator II (Application)

2 of 34

�����Écoute de l'interprétation d'une langue �Windows | macOS

2

�1. Dans les contrôles de votre réunion/webinaire, cliquez sur Interprétation .

2. Cliquez sur la langue que vous souhaitez entendre. (Nous aurons le français) Pas besoin de choisir l'anglais, c'est la langue de la salle Zoom principale

3. (Facultatif) Pour entendre uniquement la langue interprétée, cliquez sur Couper le son original.

Remarques:

  • Vous devez rejoindre l’audio de la réunion via l’audio/VoIP de votre ordinateur. Vous ne pouvez pas écouter l’interprétation linguistique si vous utilisez les fonctions audio de connexion ou d’appel téléphonique.
  • En tant que participant rejoignant une chaîne linguistique, vous pouvez retransmettre sur le canal audio principal canal si vous réactivez votre audio et parlez.

.

3 of 34

Listening to language interpretation� Windows | macOS

3

  1. In your meeting/webinar controls, click Interpretation .
  2. Click the language that you would like to hear. (We will have French) No need to choose English, that is the language in the main Zoom room

3. (Optional) To hear the interpreted language only, click Mute Original Audio.

Notes:

      • You must join the meeting audio through your computer audio/VoIP. You cannot listen to language interpretation if you use the dial-in or call me phone audio features.
      • As a participant joining a language channel, you can broadcast back into the main audio

channel if you unmute your audio and speak.

4 of 34

Fixed Effects Theory

Professor Jeremy Moulton

Department of Public Policy

University of North Carolina at Chapel Hill

June 20, 2024

4

5 of 34

Panel Data

5

id

time

1

1

2

0

1

2

2

0

1

3

5

1

2

1

2

0

2

2

4

1

2

3

4

1

3

1

5

1

3

2

5

1

3

3

5

1

6 of 34

6

Y

X

7 of 34

Pooled OLS (simple OLS regression)

7

Y

X

8 of 34

Between Estimator

8

Y

X

Y

X

9 of 34

Within Estimator (Fixed Effects)

9

Y

X

10 of 34

The Set Up

  •  

10

 

 

 

 

11 of 34

First Difference (T = 2)

  •  

11

12 of 34

What are you doing?

  •  

12

13 of 34

13

 

 

 

 

 

 

 

 

First Differences Model

14 of 34

First Difference (T > 2)

  •  

14

15 of 34

The First Difference Data

15

id

time

1

1

2

0

1

2

2

0

0

0

1

3

5

1

3

1

2

1

2

0

2

2

4

1

2

1

2

3

4

1

0

0

3

1

5

1

3

2

5

1

0

0

3

3

5

1

0

0

16 of 34

Fixed Effects Model

  •  

16

17 of 34

Between Effects Model

  •  

17

18 of 34

Fixed Effect: De-Meaned version

  •  

18

19 of 34

Let’s go back to an earlier class

19

20 of 34

 

  •  

20

 

21 of 34

Positive slope

  • If most of the observations are in quadrants I and III, then the slope is positive
    • Quadrant I: X and Y are above their mean
    • Quadrant III: X and Y are below their mean

21

I

II

IV

III

 

Xi

Yi

 

 

 

22 of 34

Negative slope

  • If most of the observations are in quadrants II and IV, then the slope is negative
    • Quadrant II: X is below and Y above their mean
    • Quadrant IV: X is above and Y below their mean

22

I

II

IV

III

 

Xi

Yi

 

 

 

23 of 34

OK, now go back to the future

23

24 of 34

Do that again, but with Fixed Effects

  • Fixed Effects changes the reference point from the overall mean to the individual mean.
    • How do you in one time period compare to your average – instead of how do you in one time period compare to everyone’s average?

24

I

II

IV

III

Xi

Yi

 

 

 

 

 

25 of 34

Fixed Effects: De-Meaned version

25

id

time

1

1

2

0

3

0.33

1

2

2

0

3

0.33

1

3

5

1

3

0.33

2

1

2

0

3.33

0.67

2

2

4

1

3.33

0.67

2

3

4

1

3.33

0.67

3

1

5

1

5

1

3

2

5

1

5

1

3

3

5

1

5

1

26 of 34

Fixed Effects: De-Meaned version

26

id

time

1

1

2

0

3

0.33

-1

-.33

1

2

2

0

3

0.33

-1

-.33

1

3

5

1

3

0.33

2

.67

2

1

2

0

3.33

0.67

-1.33

-.67

2

2

4

1

3.33

0.67

.67

.33

2

3

4

1

3.33

0.67

.67

.33

3

1

5

1

5

1

0

0

3

2

5

1

5

1

0

0

3

3

5

1

5

1

0

0

27 of 34

Ok, but how do I actually do it?

  • First Difference:
    • reg D.(y x)
  • Fixed Effects:
  • You could create a fixed effect for every individual:
    • tab id, gen(idFE)
    • reg y x idFE*
  • You could include a temporarily created fixed effect for ever individual:
    • reg y x i.id
  • You could use the xt version:
    • xtset id year
    • xtreg y x, fe
  • Or other options:
    • areg y x, absorb(id)
    • reghdfe y x, absorb(id)
      • You need to install this ado file, but it is very helpful when using a large number of fixed effects

27

28 of 34

But, what about time-varying unobservables?

28

 

29 of 34

Time Varying Unobservables

29

 

 

 

 

 

 

30 of 34

Time Varying Unobservables

30

 

 

Fixed Effects or First Differences will not “fix” all of our problems

 

 

31 of 34

Time invariant independent variables

31

 

32 of 34

Fixed Effects vs. Pooled OLS

32

 

 

 

 

 

 

 

 

Fixed Effects

Pooled OLS

33 of 34

How do I know if OLS or FE is better?

33

 

34 of 34

Test difference in coefficients

34