Announcement

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

  • vce(robust) & vce(cluster unit) in linear regression

    Is there a way to run a linear regression while correcting for heteroskedasticity
    Code:
    vce(robust)
    and clustering on a specific unit
    Code:
    vce(cluster unit)
    ?

    Thank you

  • #2
    yes, and this is discussed in both the help file and the manual; start with the help file:
    Code:
    help regress

    Comment


    • #3
      Thanks Rich Goldstein. I did look into the help file and manual but from those references, my understanding is that it is only possible to use either vce(robust) OR vce(cluster clustvar), and not both at the same time - am I wrong about this? Or is vce(cluster clustvar) enough on its own to deal with heteroskedasticity?

      Thank you.
      Last edited by Daniela Rodrigues; 02 Jun 2021, 14:23.

      Comment


      • #4
        vce(cluster clusterid) encompasses vce(robust) - this is stated in the documentation

        Comment


        • #5
          Sorry I did not find that info. Thanks very much for pointing that out.

          Comment

          Working...
          X