hey,
i run fe and need to check for Autocorrelation and Heteroscedesticity. Would you recommend to check further assumptions? I found -xttest2- which seems to work for my model? And that I can correct autocorrelation and heteroscedesticity: https://www.statalist.org/forums/for...ts-diagnostics
It seems that there are several options for different cases and i don't know which tests fit for my model.
Thank you!
i run fe and need to check for Autocorrelation and Heteroscedesticity. Would you recommend to check further assumptions? I found -xttest2- which seems to work for my model? And that I can correct autocorrelation and heteroscedesticity: https://www.statalist.org/forums/for...ts-diagnostics
It seems that there are several options for different cases and i don't know which tests fit for my model.
Thank you!
Code:
xtreg bezqual_anker i.transition, fe estimates store step1 xtreg bezqual_anker i.transition c.depressive c.selfesteem, fe estimates store step2 xtreg bezqual_anker i.transition c.depressive c.selfesteem c.fsit_a c.inc28, fe estimates store step3 xtreg bezqual_anker i.transition c.depressive c.selfesteem c.fsit_a c.inc28 i.move, fe estimates store step4 xtreg bezqual_anker i.transition c.depressive c.selfesteem c.fsit_a c.inc28 i.move c.job7, fe estimates store step5 xtreg bezqual_anker i.transition c.depressive c.selfesteem c.fsit_a c.inc28 i.move c.job7 c.warmth_pacs c.monitor_pacs c.negcomm_pacs c.inconsist_pacs c.cwarmth_cao c.cmonitor_cao, fe estimates store step6 xtreg bezqual_anker i.transition c.depressive c.selfesteem c.fsit_a c.inc28 i.move c.job7 c.warmth_pacs c.monitor_pacs c.negcomm_pacs c.inconsist_pacs c.cwarmth_cao c.cmonitor_cao c.age c.cagey c.nkidsliv, fe estimates store step7 estimates table step1 step2 step3 step4 step5 step6 step7, b(%7.4f) stats(N r2) star varlabel
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long(id cid) byte(wave age nkidsliv) double job7 byte(inc28 cagey) float(bezqual_anker transition depressive selfesteem cwarmth_cao cmonitor_cao warmth_pacs monitor_pacs negcomm_pacs inconsist_pacs fsit_a move) 111000 111203 3 39 2 0 3 9 4.6 0 1 5 4.6666665 4 4.6666665 3.75 1.6666666 2.5 5 1 111000 111203 4 40 2 0 3 10 3.8 1 2.2 4.6666665 5 4.5 4.6666665 4.25 3.666667 3.5 4 0 111000 111203 5 41 2 0 0 11 3.4 0 2.6 3 3.333333 2.5 4 3.25 2 3.5 4.5 0 111000 111203 6 42 1 3 5 12 3.8 1 1.1 4.6666665 4.3333335 2.5 4.6666665 3.5 2.3333333 2.5 4.5 0 111000 111203 7 43 1 40 5 13 4 1 1.5 5 4.6666665 3.5 4 3.75 1.6666666 2.75 5 0 111000 111203 8 44 1 0 5 14 3.8 0 1.4 4.6666665 5 3 4 3.5 1.6666666 2.75 5 0 1300000 1300202 3 37 1 40 8 13 4.2 0 1.4 4.6666665 5 5 4.6666665 4.75 2.3333333 1.5 1 0 1300000 1300202 4 38 1 50 6 14 4.4 0 2.3 4 4.6666665 4 4.6666665 4.75 2 2 2 0 3902000 3902201 5 42 3 42 3 9 4 0 1.4 4.3333335 4.3333335 4 4.6666665 4.5 2 2.75 3.5 0 3902000 3902201 6 42 3 38 4 9 4.2 0 1.4 4.3333335 5 3.5 4.6666665 4.5 2.666667 2.5 3 0 3902000 3902201 7 43 3 43 3 10 4 0 1.2 4 4.3333335 4.5 4.6666665 4.25 2.3333333 2.25 4 0 3902000 3902201 8 44 3 38 3 11 4.2 0 1.5 4.3333335 5 4 4.6666665 4.25 2.3333333 2.5 4 0 4835000 4835201 5 41 1 40 5 13 3 0 2 4.6666665 3.666667 1.5 4 3.5 2.3333333 3.25 3 0 4858000 4858201 5 29 1 25 6 9 5 0 1 5 5 5 5 4.25 1 1.25 3 0 4858000 4858201 6 30 1 30 9 11 3.6 1 1.5 5 4 5 5 4.25 3.333333 2.5 4 0 6151000 6151201 5 40 2 25 8 8 4 0 1.2 4.3333335 4.6666665 4 4.3333335 5 2.3333333 2 1 0 6151000 6151201 6 41 2 20 9 9 3.8 0 1.2 4.3333335 4.3333335 5 4.6666665 4.75 2.3333333 2 1 0 6151000 6151201 7 42 2 30 9 10 3.8 0 1.3 4.3333335 3.333333 5 5 3.75 3.333333 1.75 1 0 6151000 6151201 8 43 2 25 8 11 3.6 0 1.1 4.3333335 4.6666665 4.5 5 4.75 2.666667 1.75 1.5 0 6519000 6519201 4 41 1 40 5 10 3.2 0 2 2.666667 5 3 4 3.5 2.666667 3.25 4 0 6519000 6519201 5 41 1 35 5 11 3.8 1 1.9 3 5 4 4 3.25 3.333333 3 3 0 6519000 6519201 6 43 1 42 5 12 3.2 0 2.1 3.666667 4.3333335 4 4 3.75 3 3.5 3 0 6519000 6519201 7 44 1 40 7 13 3.2 0 2.1 3 4.6666665 3 4 4 2.3333333 3.5 2 0 6519000 6519201 8 45 1 40 7 14 3.2 0 2.5 3.333333 4.6666665 3.5 4 3.75 3 4 1.5 0 8948000 8948201 3 38 1 48.5 5 9 3.4 0 1.4 3 4.3333335 3 4.3333335 4.5 2 2.25 4 0 8948000 8948201 4 39 1 50 5 10 3.6 0 1.8 3 4.6666665 3 4.6666665 4 2 2.25 3.5 0 8948000 8948201 5 40 1 50 6 11 3.2 0 1.8 3.666667 4.3333335 3.5 4.6666665 3.75 2 2.5 3.5 0 8948000 8948201 6 41 1 50 6 12 3 0 1.6 3 3.333333 3 4.3333335 3.5 2 2.5 3.5 0 8948000 8948201 7 42 1 50 6 13 3.4 0 1.6 3.666667 4 3.5 4 3 2 2.25 4 0 8948000 8948201 8 43 1 50 5 14 3.2 0 1.6 4.3333335 3.666667 3 4 3.25 2 1.75 3.5 0 9657000 9657201 5 41 3 0 9 8 3.8 0 1.8 3.666667 4 4 4.3333335 5 4 3.5 1.5 0 9657000 9657201 8 44 3 9 10 11 3.6 0 1.9 4 4.3333335 3.5 4.3333335 4.75 3 3.5 1 0 9917000 9917201 5 39 2 45 9 8 3.8 0 1.1 4.6666665 5 4.5 4 4 3 2.5 2 0 9917000 9917201 6 40 2 45 9 9 4 0 1.3 4.3333335 4.6666665 4.5 4 4 2.666667 2.25 2 0 9917000 9917201 8 42 2 50 10 11 3.4 0 1.2 4.3333335 5 5 4.3333335 4.25 3.333333 2.25 2 0 10208000 10208201 3 38 2 40 6 8 4 0 1.7 2.666667 4.3333335 5 4 4 2.3333333 2.25 2.5 0 10208000 10208201 4 39 2 40 6 9 3.6 0 1.6 4.3333335 4.6666665 4.5 4 3.5 2 2.5 3 0 10208000 10208201 5 40 2 40 7 9 4.4 0 1.6 4.3333335 4.6666665 5 4 4 2.3333333 2 2 0 10208000 10208201 6 41 2 40 7 11 4 0 1.7 4 4 3.5 4 3.75 2.3333333 2.25 2.5 0 10208000 10208201 7 42 2 40 7 12 3.8 0 1.7 4.3333335 4 3.5 4 3.75 2.666667 2.5 1 0 10208000 10208201 8 43 2 40 7 13 3.8 0 1.6 4 4 4 4 4.25 2.666667 2.25 2 0 10957000 10957202 3 39 2 40 1 13 4.2 0 1.1 5 3.333333 2 4 3.25 2 2.75 3.5 0 10957000 10957202 4 40 2 40 0 14 4 0 1.1 4.3333335 3.666667 2.5 4 3.75 1.6666666 4 3.5 0 10957000 10957202 5 41 2 41 3 15 3.8 0 1.3 5 4.6666665 2 4.3333335 3.5 1.6666666 3.5 3.5 0 11295000 11295201 4 38 2 21 7 8 3.8 0 2.7 4 4.6666665 4.5 4.6666665 4.75 2 2.75 3.5 1 11295000 11295201 5 39 2 30 7 9 3.8 0 2.1 4.6666665 4 4.5 5 4.5 2.3333333 2.75 4 0 11295000 11295201 6 40 2 42 4 10 3.8 0 2.7 3 4.3333335 3.5 4.6666665 4.75 2 2.75 4 0 11295000 11295201 7 41 2 40 8 11 3.6 0 2.4 4 4 4 4.6666665 4.25 1.6666666 2.25 3 0 11295000 11295201 8 42 2 30 7 12 3.4 0 2.1 4.3333335 4.6666665 5 4 4.75 2 2.75 3 0 12266000 12266201 3 37 1 50 6 12 3.8 0 2 3 3.666667 5 3.333333 4.25 3 3.25 4 0 12266000 12266201 6 40 1 48 3 14 3.2 0 2.3 3.333333 4 4.5 4.3333335 4 2.666667 4.75 5 0 12471000 12471201 6 31 2 34 9 9 3 0 1.8 4 4.3333335 4.5 3.666667 3.75 3 3 3 0 12490000 12490201 3 38 3 0 6 8 3.6 0 1.7 4 4.3333335 4.5 3.333333 5 3.333333 2.75 3 0 12490000 12490201 4 39 3 0 7 9 3.4 0 1.8 5 5 5 3 4.75 4 3.5 2 0 12490000 12490201 5 40 3 27 8 10 3.6 0 1.9 4.3333335 4.6666665 3 3 4.5 4 3.5 3 0 12490000 12490201 6 41 3 28 7 11 3 0 1.7 4 4 5 4 3.75 3 3 3 0 12490000 12490201 7 42 3 28 8 12 3.4 0 1.4 3.666667 3.666667 4 5 4.75 2.3333333 3 2 0 12490000 12490201 8 43 3 18 3 13 3 0 1.3 4.3333335 4.3333335 5 3 3.75 3 3 2 0 13345000 13345202 3 39 2 0 8 11 4.4 0 1.5 3.666667 4.6666665 5 4 4.5 2 2.75 3 0 13588000 13588201 6 40 3 35 5 8 4.4 0 1.7 4 4.3333335 4 5 4.5 2.3333333 3 3 0 13588000 13588201 7 41 3 35 5 9 4.6 0 1.6 2.666667 5 4 5 5 1.3333334 2 3 0 13937000 13937201 6 41 2 50 8 8 3.8 0 1.2 4.3333335 4.6666665 5 5 4.5 2 2.25 2 0 13937000 13937201 8 43 2 70 2 10 3.8 0 1.3 3.666667 4 4 5 4.5 1.6666666 2 2.5 0 14722000 14722201 3 38 2 42 5 9 3.4 0 1.3 4.3333335 3.333333 5 3.666667 3.5 3 2.25 3 0 14722000 14722201 4 39 2 39 7 10 3.6 0 1.5 4.6666665 5 4 4 3.75 2.666667 2.25 3 0 14722000 14722201 5 40 2 45 6 11 3.6 0 1.4 4.6666665 3.666667 3 3 3.5 2 1.25 3 0 14722000 14722201 6 41 2 48 5 12 3.6 0 1.4 4.3333335 3.666667 2.5 3.666667 3.75 2.3333333 1.25 1.5 0 14722000 14722201 7 42 2 45 7 13 3.6 0 1.4 4.3333335 3.333333 3 4 3 2.3333333 1.5 2 0 14722000 14722201 8 43 2 45 8 14 3 0 1.5 5 3.666667 3 3.333333 2.75 2.3333333 1.75 2 0 14898000 14898201 4 40 3 12 7 11 4.2 0 1.4 4.3333335 4.3333335 5 4.3333335 4.25 3 3 2 0 14898000 14898201 6 42 3 15 7 13 4 0 1.4 4.6666665 4.3333335 4 4 4 2.3333333 2 2.5 0 14902000 14902201 5 30 1 25 5 8 4.8 0 1.3 5 4.6666665 5 5 4.75 1.3333334 1.75 4 0 14902000 14902201 6 31 1 25 7 9 5 0 1.3 5 5 5 5 5 1 1.25 3.5 0 14902000 14902201 8 33 1 25 7 11 4.6 0 1 5 4.6666665 5 5 5 2.666667 3 3 0 15595000 15595201 4 40 2 40 9 7 4.6 0 1.1 5 5 5 4.6666665 4.75 2.3333333 2.75 2 0 15595000 15595201 5 41 2 40 9 9 4.6 0 1 5 5 5 5 4.75 2.3333333 2.25 1 0 15595000 15595201 6 42 2 45 10 10 4.6 0 1.2 5 5 5 5 5 2 2.25 1 0 15595000 15595201 7 43 2 45 9 11 4.2 0 1 5 4 5 4.6666665 5 2.3333333 2.5 1 0 15595000 15595201 8 44 2 50 9 12 4.4 0 1 5 4.3333335 4.5 4.6666665 4.75 2 2.75 1 0 16512000 16512202 4 39 2 38 7 10 3.4 0 1.6 4.3333335 5 5 4 5 2.666667 3 3 0 16512000 16512202 5 40 2 39 7 11 3.8 0 1.7 4 5 5 4 5 2.3333333 3 2.5 0 16512000 16512202 6 41 2 39 8 12 3.6 0 1.5 3.666667 5 4.5 3.666667 5 2 2.75 3 0 16512000 16512202 7 42 2 40 8 13 3.8 0 1.6 3.666667 4.6666665 5 3.666667 4.75 2.666667 3 2 0 16512000 16512202 8 43 2 42 8 14 3 0 1.6 4 4.3333335 3.5 3.666667 5 2.3333333 3.25 2.5 0 16671000 16671201 3 39 1 36 8 10 3.6 0 1.5 4.3333335 4.3333335 3 4 3.75 3 3.25 2 0 16671000 16671201 4 40 1 40 8 11 3.6 0 1.3 4 3.666667 4 4 3.75 2.3333333 3 3 0 16829000 16829201 3 38 2 19.5 6 12 2 0 2.4 3 4.3333335 4.5 3.666667 3.75 3 2.5 2 0 16829000 16829201 4 39 2 19 6 13 1.8 0 2.6 3.666667 2.3333333 3 3 3 3 2.25 2 0 16829000 16829201 5 40 2 19 0 14 2.4 0 2.3 3.333333 3.666667 2.5 3.333333 3.25 2.3333333 2.25 3 0 17018000 17018203 3 38 5 0 10 10 3.6 0 1.2 4.3333335 4.3333335 4.5 4.3333335 3.75 3.333333 2.25 1 0 17018000 17018203 4 40 5 3 9 11 3.4 0 1.4 4.3333335 4 4 4.3333335 3.75 2.666667 1.75 1 0 17018000 17018203 5 41 5 6 10 12 3.8 0 1.3 4 5 4 4 3.5 2.666667 2.25 1 0 17018000 17018203 6 41 5 0 10 13 3.4 0 1.4 4.3333335 4.3333335 3 4.3333335 3.25 2.666667 2.25 1 1 17018000 17018203 7 43 5 0 10 14 3.6 0 1.5 4.3333335 5 5 4.3333335 3.5 2.3333333 2.5 1 1 17018000 17018203 8 43 5 0 8 15 3.4 0 1.3 4.3333335 5 3 4.3333335 3.75 3 2.75 2 0 17464000 17464202 3 38 3 0 7 9 4 0 1.7 3.666667 5 5 4 4.5 2 2.75 2.5 0 17464000 17464202 4 40 3 0 8 11 3.8 0 1.9 2.666667 5 5 4.6666665 4.5 2.3333333 2.25 1 0 17464000 17464202 5 40 3 20 8 11 3.8 0 1.5 4 4.3333335 5 5 5 2 2.25 1.5 0 17464000 17464202 6 41 3 20 10 12 3.6 0 1.4 4 3.666667 5 4 4.5 2.3333333 2.5 1 0 18011000 18011201 3 39 1 50 8 8 3.4 0 1.2 4.3333335 3.666667 3.5 3.666667 3.75 3.333333 3 2 0 end label values wave WAVE_prt3 label def WAVE_prt3 3 "3 2010/11", modify label values age age_ac3 label values nkidsliv nkids_ac3 label values job7 liste233_ac3 label def liste233_ac3 0 "0 Keine", modify label values inc28 liste4_ac3 label def liste4_ac3 0 "0 Sehr unzufrieden", modify label def liste4_ac3 10 "10 Sehr zufrieden", modify label values bezqual_anker bezqual_anker label def bezqual_anker 5 "5 hoch", modify label values transition transition label def transition 0 "0 k. Veränderung", modify label def transition 1 "1 Veränderung", modify label values depressive depressive label def depressive 1 "1 niedrig", modify label values selfesteem selfesteem label def selfesteem 5 "5 hoch", modify label values cwarmth_cao cwarmth_cao label def cwarmth_cao 5 "5 hoch", modify label values cmonitor_cao cmonitor_cao label def cmonitor_cao 5 "5 hoch", modify label values warmth_pacs warmth_pacs label def warmth_pacs 5 "5 hoch", modify label values monitor_pacs monitor_pacs label def monitor_pacs 5 "5 hoch", modify label values negcomm_pacs negcomm_pacs label def negcomm_pacs 1 "1 niedrig", modify label values inconsist_pacs inconsist_pacs label values fsit_a fsit_a label def fsit_a 1 "1 gut", modify label def fsit_a 5 "5 weniger gut", modify label values move move label def move 0 "kein Umzug", modify label def move 1 "Umzug", modify
Comment