Hello everyone,
I am using an unbalanced panel dataset and want to use -xtreg-.
Actually I am a bit confused regarding testing my model.
I started with PB-LM test and F-test to find random and fixed effects and found both.
Afterwards I run a Hausman test which recommanded me to use re model.
Furthermore I ran a test for autocorrlation which was significant and therefore I idenfitied autocorrelation.
Now i want to do a test for heteroskedasticity. I know that for a fixed effects model I can use the -xttest3- command. But since I identified random effects are appropriate I need to run a different test.
In my research I found that I may have to switch to -xtgls- and use the -xttest2- to identify weather there is heteroskedasticity or not, but I get an error:
Code:
Error:
Is there anything wrong in my command or is it still the worng command to use?
Or do I still have to stick to -xtreg- and the fe model, since after running a Sargan Hansen test (-xtoverid-) it recommends me to go with the fe model. So do I have to do the test for heteroskedasticity after my Sargan Hansen test? Actually I think I have to do it before.
Hopefully you can help me I got a bit confused with all these tests.
Best regards
Jana
I am using an unbalanced panel dataset and want to use -xtreg-.
Actually I am a bit confused regarding testing my model.
I started with PB-LM test and F-test to find random and fixed effects and found both.
Afterwards I run a Hausman test which recommanded me to use re model.
Furthermore I ran a test for autocorrlation which was significant and therefore I idenfitied autocorrelation.
Now i want to do a test for heteroskedasticity. I know that for a fixed effects model I can use the -xttest3- command. But since I identified random effects are appropriate I need to run a different test.
In my research I found that I may have to switch to -xtgls- and use the -xttest2- to identify weather there is heteroskedasticity or not, but I get an error:
Code:
Code:
local controls "fs lev itq rdi growth cap_exp" xtgls tq cvc1 `controls' estimates store RE xttest2
Code:
. local controls "fs lev itq rdi growth cap_exp"
. xtgls tq cvc1 `controls'
Cross-sectional time-series FGLS regression
Coefficients: generalized least squares
Panels: homoskedastic
Correlation: no autocorrelation
Estimated covariances = 1 Number of obs = 182
Estimated autocorrelations = 0 Number of groups = 17
Estimated coefficients = 8 Obs per group:
min = 8
avg = 10.70588
max = 11
Wald chi2(7) = 934.72
Log likelihood = -127.4512 Prob > chi2 = 0.0000
------------------------------------------------------------------------------
tq | Coefficient Std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
cvc1 | -.0019507 .0010543 -1.85 0.064 -.004017 .0001157
fs | -.1371241 .0409864 -3.35 0.001 -.2174559 -.0567922
lev | .067518 .0457678 1.48 0.140 -.0221852 .1572211
itq | 1.038877 .0551196 18.85 0.000 .9308442 1.146909
rdi | 2.562943 .9972166 2.57 0.010 .6084342 4.517451
growth | .0984387 .1628702 0.60 0.546 -.220781 .4176585
cap_exp | 3.262956 1.287108 2.54 0.011 .7402705 5.785642
_cons | 1.158686 .4346392 2.67 0.008 .3068091 2.010563
------------------------------------------------------------------------------
. estimates store RE
. xttest2
Correlation matrix of residuals is singular.
not possible with test
Is there anything wrong in my command or is it still the worng command to use?
Or do I still have to stick to -xtreg- and the fe model, since after running a Sargan Hansen test (-xtoverid-) it recommends me to go with the fe model. So do I have to do the test for heteroskedasticity after my Sargan Hansen test? Actually I think I have to do it before.
Hopefully you can help me I got a bit confused with all these tests.
Best regards
Jana


Comment