110 likes | 264 Views
Panel Data Analysis. INTRO. Panel Data is where you observe behavior of entities across time. Allows to control for unobservable variables that change over time but not entity Allows to control for unobservable variables across entities xtset entity time . xtline fatalityrate , ( ov ).
E N D
INTRO • Panel Data is where you observe behavior of entities across time. • Allows to control for unobservable variables that change over time but not entity • Allows to control for unobservable variables across entities • xtsetentity time
Eq 2 Dummy Variables xi: regfatalityratesb_useagei.fipsi.year predict yhat separate yhat, by(fips) separate yhat, by(year) twoway connected yhat1-yhat56 sb_useage|| lfitfatalityratesb_useage, clwidth(thick) clcolor(black) twoway connected yhat1983-yhat1997 sb_useage|| lfitfatalityratesb_useage, clwidth(thick) clcolor(black)
Eq 1 n entity-specific intercepts aregfatalityratesb_useage, absorb(state) aregfatalityratesb_useage year2…year10, absorb(state)
Eq 1 n entity-specific intercepts xtsetfips year xtregfatalityratesb_useage, fe
xtregoptions fe: fixed effects Explores relationship between estimations and outcomes within an entity. Assumes each entity has own characteristics that may influence yhat to control for. re: random effects Variation across entities is assumed to be random and uncorrelated with the independent variables included in the model be: between effects pa: population-average