Announcement

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

  • The substitute for "xtreg,[aweight=], fe" is "xtivreg2 [aweight=],fe"?

    Hello everybody, as always I would be very grateful if someone could help me. I need to estimate a fixed effect model weighted by the population i.e. the higher the population the higher the importance of the observation. I was advised to use the aweight option but this function is not allowed by "xtreg,fe". I found some forum entries that advised to use "xtivreg2 [aweight=population],fe" as substitute for "xtreg,[aweight=population], fe" , is that right? If they are not substitutes can someone suggest me another function that I can use?

    Thank you very much in advance for your help.


  • #2
    xtreg, fe supports aweights (pweights and iweights) that are constant within panel.
    So if your weights are constant within panel, then you should be able to use xtreg, fe.

    Alternatively, areg will allow aweights to vary within the absorption groups.

    Comment


    • #3
      Thank you Jeff! Can I also use xtivreg2 instead of areg?

      Comment


      • #4
        Based on the help file for xtivreg2, aweights and pweights are supported.

        Comment

        Working...
        X