V#28 Workshop on Fixed Effect vs Random Effect Model (Panel Data) Using STATA
Channel: Zahid Asghar
Date: 2020-11-18

Datasource : https://global.oup.com/uk/orc/busecon/economics/dougherty5e/student/datasets/nlsy/

Panel Using R
https://studio.youtube.com/video/rAh88t92Tsw/edit
https://www.rpubs.com/Zahidasghar/panel_data
Stata Commands
xtset ID TIME
gen LGEARN=log(EARNINGS)

xtdescribe

eststo: reg LGEARN MARRIED SOONMARR
eststo: xtreg LGEARN MARRIED SOONMARR, fe
estimates store fixed
eststo: xtreg LGEARN MARRIED SOONMARR, re
estimates store random
hausman fixed ., sigmamore