Announcement

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

  • Control for heteroscedasticity and autocorrelation for panel data

    How can I control for heteroscedasticity and autocorrelation when I ran the tests
    xtserial av uv, output and
    xtreg av uv, fe
    estimates store FE
    xttest3

    and found out that both exist in my panel data set.

    Do i have to add something to my fixed effects command: xtreg av uv, fe?

    Thank you!

  • #2
    Jodie:
    provided that the number of your clusters is at least 30:
    Code:
    xtreg av uv, fe robust
    or
    Code:
    xtreg av uv, fe vce(cluster panelid)
    wil take care of both the nuisances.
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      Thanks!

      That helped a lot!

      Comment


      • #4
        Can I save the new results? Because when I try to save it with asdic it does not work? And I get this error: (file Myfile.doc not found)
        file Myfile.doc could not be opened
        fopen(): 603 file could not be opened
        asdocrest(): - function returned error
        <istmt>: - function returned error
        r(603);

        Comment


        • #5
          Jodie:
          you probably mean the community-contributed module (as FAQ kindly recommend you to mention it) -asdoc- that, unfortunately, I'm not familiar with.
          That said, check that you have installed its last version.
          Kind regards,
          Carlo
          (Stata 19.0)

          Comment


          • #6
            The xttest1, xttest2, and xttest3 are supported in asdocx, not in asdoc.
            Regards
            --------------------------------------------------
            Attaullah Shah, PhD.
            Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
            FinTechProfessor.com
            https://asdocx.com
            Check out my asdoc program, which sends outputs to MS Word.
            For more flexibility, consider using asdocx which can send Stata outputs to MS Word, Excel, LaTeX, or HTML.

            Comment

            Working...
            X