Announcement

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

  • testing for heteroskedasticity in long panel datasets

    Hello everyone,

    I'm working with a long panel dataset (T>N) and so I've chosen to use -xtpcse- command.
    1. How can I test for existence of heteroskedasticity in this case?
    2. to check autocorrelation I've used xtserial, is it right to do this?

    Thank you in advance,
    King regards,
    Michael

  • #2
    The user contributed -xtserial- is solving a problem that you do not have -- it is for fixed effects panel data where N is large and T is small.

    I think that whatever autocorrelation and heteroskedasticity tests you find in Stata should work for your case.

    Comment


    • #3
      Originally posted by Joro Kolev View Post
      The user contributed -xtserial- is solving a problem that you do not have -- it is for fixed effects panel data where N is large and T is small.

      I think that whatever autocorrelation and heteroskedasticity tests you find in Stata should work for your case.
      Thank you Joro.
      But my problem is this: commands that I knew like -hettest-, -imtest-, -rvfplot-, -xttest*-, just works after commands like -xtreg-, -xtgls-, and -reg-. and the results of tests after xtgls and xtreg for heteroskedasticity are different! (for first one p-value for Wald test (het) is 7.1% and for the first one 3.6% for example!).
      What should I do in this case?
      Last edited by Michael Lee; 11 Aug 2022, 04:30.

      Comment


      • #4
        Michael:
        set aside the test issue for a while, please note that you're comparing two way different estimators. No wonder that p-values differ.
        If you have a T>N panel dataset, you should focus on -xtgls- and -xtregar- only.
        Kind regards,
        Carlo
        (Stata 19.0)

        Comment


        • #5
          Originally posted by Carlo Lazzaro View Post
          Michael:
          set aside the test issue for a while, please note that you're comparing two way different estimators. No wonder that p-values differ.
          If you have a T>N panel dataset, you should focus on -xtgls- and -xtregar- only.
          Dear Carlo, due to heteroskedasticity, autocorrelation and cross-sectional dependence and having an unbalanced panel data I preferred to use -xtpcse-, according a discussion in this forum....

          Comment


          • #6
            Dear Michael,

            How many time periods and cross-sectional units do you have?

            Comment


            • #7
              Dear Maxence,
              T=190 (time periods) and N=6 (number of panel)
              Last edited by Michael Lee; 15 Aug 2022, 04:17.

              Comment


              • #8
                You may want to consider the community contributed command xtscc, and check out the paper by Hoechle (2007).

                Comment


                • #9
                  Originally posted by Maxence Morlet View Post
                  You may want to consider the community contributed command xtscc, and check out the paper by Hoechle (2007).
                  I have unbalanced panel data...

                  ...and having an unbalanced panel data

                  Comment


                  • #10
                    xtscc should allow unbalanced panels. It’s fixed effects with standard errors that allow cross-sectional dependence, serial correlation, heteroskedasticity.

                    Comment


                    • #11
                      xtscc should allow unbalanced panels. It’s fixed effects with standard errors that allow cross-sectional dependence, serial correlation, heteroskedasticity.

                      Comment


                      • #12
                        What is the advantage of -xtscc- over -xtpcse-?
                        In long unbalanced panel data?

                        Comment


                        • #13
                          Professor Wooldridge, please correct if I'm wrong, but this is my understanding of the situation here:

                          The paper I mentioned, Hoechle (2007), provides a good overview of this issue: you have T>N, but T/N does not tend to infinity in your case, relatively far from it. Through Monte Carlo simulations, Hoechle (2007) demonstrates that when large T asymptotic properties cannot be achieved due to a finite number of time periods (as is the case here), Driscoll-Kraay (1998) standard errors outperform Beck and Katz (1995) panel-corrected standard errors.

                          Comment


                          • #14
                            Originally posted by Michael Lee View Post
                            What is the advantage of -xtscc- over -xtpcse-?
                            In long unbalanced panel data?
                            Can anyone help in this regard?

                            Comment


                            • #15
                              Originally posted by Michael Lee View Post

                              Can anyone help in this regard?
                              Have you read #13??

                              Comment

                              Working...
                              X