Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to fix heteroskedasticity and autocorrelation on OLS

    Hi
    I did OLS test for my panel data ( n= 760 and t=8) and checked heteroskedasticity and autocorrelation as below ( the result show that there is heteroskedasticity and autocorrelation

    Code:
    White's test for Ho: homoskedasticity
             against Ha: unrestricted heteroskedasticity
    
             chi2(25)     =    268.88
             Prob > chi2  =    0.0000
    
    Cameron & Trivedi's decomposition of IM-test
    
    ---------------------------------------------------
                  Source |       chi2     df      p
    ---------------------+-----------------------------
      Heteroskedasticity |     268.88     25    0.0000
                Skewness |      40.02      6    0.0000
                Kurtosis |       1.57      1    0.2105
    ---------------------+-----------------------------
                   Total |     310.46     32    0.0000
    
    . xtserial lexport lgdp lpgdp llpitotal ldistance dummyrta dummyland
    
    Wooldridge test for autocorrelation in panel data
    H0: no first-order autocorrelation
        F(  1,      94) =    110.533
               Prob > F =      0.0000
    How can I fix this . is this ok to add vce cluster ( country1) into ols test to fix
    Thank you

  • #2
    Yes, clustering by the panel variable resolves heteroskedasticity and auto correlation issues.

    Comment


    • #3
      Thanks so much

      Comment

      Working...
      X