Hello,
I am working with panel data where T=23 and N= 22 (country).
I performed the following steps:
xtreg depvar indepvar (1) indepvar (2) indepvar (dummy), fe
estimate store fe
xtreg depvar indepvar (1) indepvar (2) indepvar (dummy), re
estimate store fe
To decide between the both models I run the Hausman test, whose result indicates that fixed effects is the appropriate model. (chi2 = 86.60 Prob>chi2 = 0.0000)
After this, I applied tests to check problems of cross sectional independence (a), heteroskedasticity (b) and autocorrelation(c):
(a): xtcsd, pesaran abs | Result: Pr = 0.7796 (There is no serial correlation)
(b): xttest3 | Result: Prob>chi2 = 0.0000 (There is Heteroskedasticity)
(c): xtserial | Result: Prob > F = 0.0000 (There is Autocorrelation) | I also estimated this command for each of the independent variables. xtserial depvar indepvar 1
xtserial depvar indepvar 2 ... (always autocorrelation)
I have problems of autocorrelation and heteroskedasticity in my model.
So to solve these problems, according to what I read in https://www.stata.com/manuals/xtxtgls.pdf, once I have T>N, I used xtgls:
xtgls dep indepVar's, panels (heteroskedastic) corr (ar1)
My questions is: What I did is correct? Is the best way to fix these problems?
Thank you.
Best regards
Related Posts with Panel regression
Fixed effect estimator, interaction effect with dummy variable varying within unit and timeHei, I am doing a fixed effect model on a panel of N = 1089 and T = 30 000 (ish). ESGscore = beta…
Optimization time when transposing rclass into eclassDear Statalist, I need to use _pctile inside another ado that only accepts eclass programs. My orig…
ppml vs ppmlhdfe for structural gravity estimmationGood afternoon, I am studying the determinants of asset trade flows across 40ish countries, from 19…
Non-linear ARDL bound testHow can I do NARDL in STATA? is there any user written command? FYI: I use STATA 15.1 …
Survival Analysis - Failure / UnknownHi there, I have a question regarding survival data My data is as follows: Code: * Example gener…
Subscribe to:
Post Comments (Atom)
0 Response to Panel regression
Post a Comment