******************************************************************************** Declare Panel Data ******************************************************************************** xtset id year ******************************************************************************** Define Additional Variables for Regression Analysis ******************************************************************************** gen size=log10(mv) gen mtb=mv/tas by id: gen lsize=L.size by id:gen mtbl=L.mtb egen sizemean=mean(size), by (industry) egen nimean=mean(ni), by (industry) egen mtbmean=mean(mtb), by (industry) gen sizek=size-sizemean gen nik=ni-nimean gen mtbk=mtb-mtbmean ******************************************************************************** Έλεγχος Πολυσυγγραμικότητας - VIF ******************************************************************************** reg abnormalcfor l.sizek l.mtbk nik suspect vif reg abnormalDiscrr l.sizek l.mtbk nik suspect vif reg abnormalproducr l.sizek l.mtbk nik suspect vif ******************************************************************************** Έλεγχος Ετεροσκεδαστικότητας - estat hettest ******************************************************************************** reg abnormalcfor l.sizek l.mtbk nik suspect estat hettest reg abnormalDiscrr l.sizek l.mtbk nik suspect estat hettest reg abnormalproducr l.sizek l.mtbk nik suspect estat hettest ******************************************************************************** Έλεγχος Ετεροσκεδαστικότητας - estat imtest, white ******************************************************************************** reg abnormalcfor l.sizek l.mtbk nik suspect estat imtest, white reg abnormalDiscrr l.sizek l.mtbk nik suspect estat imtest, white reg abnormalproducr l.sizek l.mtbk nik suspect estat imtest, white ******************************************************************************** Panel Regression - Διόρθωση Ετεροσκεδαστικότητας ******************************************************************************** xtreg abnormalcfor l.sizek l.mtbk nik suspect, robust xtreg abnormalDiscrr l.sizek l.mtbk nik suspect, robust xtreg abnormalproducr l.sizek l.mtbk nik suspect, robust ******************************************************************************** Έλεγχος Αυτοσυσχέτισης - estat bgodfrey, lag(1) ******************************************************************************** generate time=_n ttset time reg abnormalcfor l.sizek l.mtbk nik suspect estat bgodfrey, lag(1) reg abnormalDiscrr l.sizek l.mtbk nik suspect estat bgodfrey, lag(1) reg abnormalproducr l.sizek l.mtbk nik suspect estat bgodfrey, lag(1) ******************************************************************************** Panel Regression - Διόρθωση Αυτοσυσχέτισης - cluster(id) ******************************************************************************** xtreg abnormalcfor l.sizek l.mtbk nik suspect, cluster(id) xtreg abnormalDiscrr l.sizek l.mtbk nik suspect, cluster(id) xtreg abnormalproducr l.sizek l.mtbk nik suspect, cluster(id) ******************************************************************************** Panel Regression - Διόρθωση Ετεροσκεδαστικότητας/Αυτοσυσχέτισης ******************************************************************************** xtreg abnormalcfor l.sizek l.mtbk nik suspect, robust cluster(id) xtreg abnormalDiscrr l.sizek l.mtbk nik suspect, robust cluster(id) xtreg abnormalproducr l.sizek l.mtbk nik suspect, robust cluster(id) ******************************************************************************** Έλεγχος Hausman - fe versus re ******************************************************************************** xtreg abnormalcfor l.sizek l.mtbk nik suspect, fe estimates store fixed xtreg abnormalcfor l.sizek l.mtbk nik suspect, re estimates store random hausman fixed random xtreg abnormalDiscrr l.sizek l.mtbk nik suspect, fe estimates store fixed xtreg abnormalDiscrr l.sizek l.mtbk nik suspect, re estimates store random hausman fixed random xtreg abnormalproducr l.sizek l.mtbk nik suspect, fe estimates store fixed xtreg abnormalproducr l.sizek l.mtbk nik suspect, re estimates store random hausman fixed random ******************************************************************************** Panel Regression - Διόρθωση Ετεροσκεδαστικότητας/Αυτοσυσχέτισης/fe ******************************************************************************** xtreg abnormalcfor l.sizek l.mtbk nik suspect, fe robust cluster(id) xtreg abnormalDiscrr l.sizek l.mtbk nik suspect, fe robust cluster(id) xtreg abnormalproducr l.sizek l.mtbk nik suspect, fe robust cluster(id) ******************************************************************************** Panel Regression - Διόρθωση Ετεροσκεδαστικότητας/Αυτοσυσχέτισης/re ******************************************************************************** xtreg abnormalcfor l.sizek l.mtbk nik suspect, re robust cluster(id) xtreg abnormalDiscrr l.sizek l.mtbk nik suspect, re robust cluster(id) xtreg abnormalproducr l.sizek l.mtbk nik suspect, re robust cluster(id) ********************************************************************************