ECON 2310 Regression with Panel Data

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/81

encourage image

There's no tags or description

Looks like no tags are added yet.

82 Terms

1
New cards

panel dataset

A panel dataset contains observations on multiple entities (individuals), where each entity is observed at two or more points in time

2
New cards

panel data examples

Data on 420 California school districts in 1999 and again in 2000, for 840 observations total.

• Data on 50 U.S. states, each state is observed in 3 years, for a total of 150 observations.

• Data on 1000 individuals, in four different months, for 4000 observations total

3
New cards

panel data notation


4
New cards

panel data with k regressors


5
New cards

balanced panel

no missing observations

6
New cards

unbalanced panel

some entities (states) are not observed for some time periods (years)

7
New cards

traffic deaths and alcohol taxes observations


8
New cards

traffic deaths and alcohol taxes variables


9
New cards

traffic death data 1982


10
New cards

traffic death data 1988


11
New cards

why might there be more traffic deaths in states with higher alcohol taxes?

Other factors that determine traffic fatality rate:

• Quality (age) of automobiles

• Quality of roads

• “Culture” around drinking and driving

• Density of cars on the road


12
New cards

why panel data is useful


13
New cards

key idea:

If an omitted variable does not change over time, then any changes in Y over time cannot be caused by the omitted variable.

14
New cards

omitted factors that can cause OVB

Example #1: traffic density. Suppose:

(i) High traffic density means more traffic deaths

(ii) (Western) states with lower traffic density have lower alcohol taxes

15
New cards

OVB example and panel data

Then the two conditions for omitted variable bias are satisfied. Specifically, “high taxes” could reflect “high traffic density” (so the OLS coefficient would be biased positively – high taxes, more deaths)

• Panel data lets us eliminate omitted variable bias when the omitted variables are constant over time within a given state

16
New cards

example 2: cultural attitudes towards drinking and driving

(i) arguably are a determinant of traffic deaths; and

(ii) potentially are correlated with the beer tax, so beer taxes could be picking up cultural differences (omitted variable bias)

17
New cards

OVB example 2

Then the two conditions for omitted variable bias are satisfied. Specifically, “high taxes” could reflect “cultural attitudes towards drinking” (so the OLS coefficient would be biased)

• Panel data lets us eliminate omitted variable bias when the omitted variables are constant over time within a given state

18
New cards

panel data 2 time periods


19
New cards

Zi in two time periods


20
New cards

key idea with Zi


21
New cards

math behind observing effect of Zi


22
New cards

More math of examining Zi effect


23
New cards

explanation of Zi between 1982 and 1988


24
New cards

difference regression



25
New cards

scatterplot changes in fatality and beer tax


26
New cards

what if you have more than 2 time periods?


27
New cards

2+ period rewrite - fixed effects form


28
New cards

population regression for California


29
New cards

population regression for California notes


30
New cards

Population regression for Texas


31
New cards

collecting lines for 3 states


32
New cards

graph of regression lines for each state


33
New cards

states in binary regressor form


34
New cards



35
New cards

fixed effects form


36
New cards

fixed effects regression estimation


37
New cards

fixed effects regression estimation notes


38
New cards

n-1 binary regressors ols regression


39
New cards

n-1 binary regressors ols regression notes


40
New cards

entity demeaned OLS regression


41
New cards

continued entity demeaned OLS regression


42
New cards

entity demeaned OLS regression for i = 1 and t = 1982


43
New cards

more on entity demeaned OLS regression


44
New cards

entity demeaned OLS regression steps


45
New cards

regression with time fixed effects is similar to

state fixed effects regression

46
New cards

An omitted variable might vary over time but not across

states!

Safer cars (air bags, etc.); changes in national laws

• These produce intercepts that change over time

47
New cards

changes in intercepts


48
New cards

time fixed effects only


49
New cards

In effect, the intercept varies from one year to the next:


50
New cards

two formulations for time fixed effects

binary regressor and time effects formulations

51
New cards

binary regressor formulation


52
New cards

time effects formulation


53
New cards

time fixed effects estimation methods

“T-1 binary regressors” OLS regression

“year demeaned” OLS regression

54
New cards

“T-1 binary regressors” OLS regression


55
New cards

“Year-demeaned” OLS regression


56
New cards

state and time fixed effects


57
New cards

state and time fixed effects - binary vs state and time


58
New cards

state and time effects estimation metions

“n-1 and T-1 binary regressors” OLS regression

“State- and year-demeaned” OLS regression

59
New cards

“n-1 and T-1 binary regressors” OLS regression


60
New cards

“State- and year-demeaned” OLS regression


61
New cards

fixed effects regression assumptions



62
New cards

out of these assumptions

Assumptions 3, 4 are identical; 1, 2 differ; 5 is new

63
New cards

assumption 1


64
New cards

assumption 1: there is no feedback


65
New cards

assumption 2


66
New cards

assumption 5


67
New cards

notes on assumption 5


68
New cards

what if assumption 5 fails


69
New cards

cluster standard error


70
New cards

application to drunk driving laws: background


71
New cards

public polcy issues


72
New cards

balanced drink driving panel set


73
New cards

drunk driving variables


74
New cards

why might panel data help?

Potential OV bias from variables that vary across states but are constant over time

or

that vary across time but are constant across states

75
New cards

Potential OV bias from variables that vary across states but are constant over time

culture of drinking and driving

o quality of roads

o vintage of autos on the road

 use state fixed effects

76
New cards

Potential OV bias from variables that vary over time but are constant across states:


o improvements in auto safety over time

o changing national attitudes towards drunk driving

 use time fixed effects

77
New cards

regression analysis of effect of drunk driving: panel


78
New cards

f stats and p values


79
New cards

empirical analysis: main results


80
New cards

advantages of fixed effects regression


81
New cards

limitations of fixed effects


82
New cards

Fixed effects estimation can be done three ways: