Beruflich Dokumente
Kultur Dokumente
Hui-chen Wang
Prepared for the Stata User Group Meeting December 14, 2012 Taipei, Taiwan
1
Presentation Outline
Longitudinal (panel) data analysis Nature of panel data Basic linear models:
Cluster Robust Standard Errors Fixed effects and Random effects
Quantile regression
Panel/Longitudinal Data
A data set in which the same entities are observed across time Entities: Persons, firms, states, countries, etc.. Examples Micro data: PSID, NLSY, IRS data (of the same persons or firms) Aggregate data: Time series of multiple 4 countries, states, etc
Cluster-robust Standard errors: SE adjusted for clustering Positive (negative) correlation within cluster
Unadjusted SE is understated (overstated) Cluster-adjustment => SE larger (smaller)
8
Identical Coefficients
Bigger SE
Smaller significance
10
),
15
16
17
18
19
Additional Remarks
Interpretation of the constant term in FE model
Arbitrary value Is the average of y per Stata constraint
Interpretation of R2 Hausman test for fixed effects: hausman Within and Between variation: xtsum
20
21
Panel IV Estimation
Static IV
xtivreg, xtivreg2
2sls after within (FE) transformation Uses exogenous instrunment from current period Cannot estimate time-invariant repressors
Mayer, Wang, Egginton and Flint (2012), The Impact of Revenue Diversification on Expected Revenue and Volatility for Nonprofit Organizations, NVSQ forthcoming
24
xtabond
(Defaut: one lag, all available IVs)
25
26
Coefficient differences across conditional distribution Stata Command: qreg, bsqreg, sqreg
27
28
Different SE and t
29
30
Wang and Hsieh (2012), Tobacco Politics: The Role of Voters and Special Interests in Cigarette Tax Setting
t+1 = 96, 97, 99, 00, 02, 03, 07, 08
Taxi ,t +1 = 0 + 1 VoterAttitudeit + 2 (VoterAttitudeit PartyDomit ) + 3 Tobaccoit + 4 AntiSmoking it + X it + uit Per-pack state cigarette tax (cents)
Data source: State Tobacco Activities Tracking & Evaluation (STATE)
31
(Example from Wang and Hsieh, 2012) Differential Politics across Tax Distribution: OLS and Quantile Regression Results
32
33
34