slides-6-iu
slides-6-iu
▪ Disadvantages
▪ Require more efforts collecting data
▪ Selectivity biases
PANEL DATA MODEL
REQUIRES WITHIN GROUP VARIATION
▪ Panel data model (FE) requires variation within group
▪ An example where panel data does not work
𝑦𝑖𝑡 = 𝛼 + 𝛽𝑥𝑖𝑡 + 𝑢
▪ 𝑦𝑖𝑡 is export volume from VN to country 𝑖 in year 𝑡
▪ 𝑥𝑖𝑡 is the distance from VN to country 𝑖 in year 𝑡
▪ As distance from VN to country 𝑖 does not change from year to year, it can’t be
included in the fixed effect model.
THE DATA
▪ Provincial data 2007 – 2011
▪ rgdp: regional GDP (mil. VND)
▪ rinvest: investment (mil. VND)
▪ labfo: labor force (thousand workers)
▪ pci: Provicial Competitive Index (range 0-100)
▪ Source: https://kinhteluong.online/esdata/iu/panel.csv
SUMMARY STATISTICS
MODEL SPECIFICATION
▪ In this lecture we will consider the specification
𝑦𝑖𝑡 = 𝛼 + 𝛽𝑋𝑖𝑡 + 𝑢
▪ 𝑦𝑖𝑡 is the logarithm of real GDP of province 𝑖 in year 𝑡
▪ 𝑋𝑖𝑡 includes
▪ Logarithm of the labor force
▪ Logarithm of real investment
▪ Provincial competitiveness index (PCI)
POOLED OLS ESTIMATOR
POOLED OLS ESTIMATOR
▪ Data of all groups are pooled together
▪ No difference between groups
▪ Note: these are the two ways of estimating the FE model, not two different models.
WITHIN GROUP FIXED EFFECTS ESTIMATOR
▪ The model
𝑦𝑖𝑡 = 𝛼𝑖 + 𝛽𝑋𝑖𝑡 + 𝑢𝑖𝑡 (1)
▪ We need to allow for the intercept to vary across groups.
▪ Now take the average of variables across time, note that the parameters are time-
invariant
𝑦ത𝑖𝑡 = 𝛼𝑖 + 𝛽 𝑋ത𝑖𝑡 + 𝑢ത 𝑖𝑡 (2)
1 1
▪ where 𝑦ത𝑖𝑡 = σ𝑇𝑡=1 𝑦𝑖𝑡 and 𝑋ത𝑖𝑡 = σ𝑇𝑡=1 𝑋𝑖𝑡
𝑇 𝑇
▪ Then subtract (2) from (1)
𝑦𝑖𝑡 − 𝑦ത𝑖𝑡 = 𝛼𝑖 − 𝛼𝑖 + 𝛽 𝑋𝑖𝑡 − 𝑋ത𝑖𝑡 + 𝑢𝑖𝑡 − 𝑢ത 𝑖𝑡
▪ Which results in
𝑦ු𝑖𝑡 = 𝛽 𝑋ෘ𝑖𝑡 + 𝑢ු 𝑖𝑡
▪ With this way we can estimate 𝛽 but not the fixed effects.
WITHIN GROUP
FIXED EFFECTS
ESTIMATOR
WITHIN GROUP
FIXED EFFECTS
ESTIMATOR
robust standard
errors
WITHIN GROUP
FIXED EFFECTS
ESTIMATOR
clustered standard
errors
LEAST SQUARES DUMMY VARIABLE ESTIMATOR
▪ For the model
𝑦𝑖𝑡 = 𝛼𝑖 + 𝛽𝑋𝑖𝑡 + 𝑢𝑖𝑡
▪ we can estimate the fixed effects and 𝛽 by introducing the dummy variables
1 if 𝑗 = 𝑖
𝐷𝑗𝑖 =
0 otherwise
▪ We can then estimate the following model using OLS
𝑁
𝑁 𝑇
where
1 if 𝑔 = 𝑡
𝐷𝑔𝑡 =
0 otherwise
LSDV TWO-WAY
FIXED EFFECTS MODEL