Announcement

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

  • xtpcse and xtgls with fixed effects

    Hello community:
    I want to robustly estimate (xtgls) a panel data model, for both FE and RE. The following commands are correct:

    For FE:

    Code:
    xi: xtgls Y X i. id i.year, p (c) c (a)
    For RE:

    Code:
    xtgls Y X, p (c) c (a)

    Thank you very much!
    Last edited by lucho sanchez; 20 May 2021, 22:09.

  • #2
    If you mean that you want robust standard errors/variance, you can get them with my post estimation command -xtglsr-. Type from within Stata
    Code:
     ssc install xtglsr

    Comment


    • #3
      Thanks Joro!!
      but beyond that, I have the doubt if the commands - xtgls or -xtpcse are by default for fixed effects, or do I need to adapt them.

      Comment


      • #4
        Originally posted by Joro Kolev View Post
        If you mean that you want robust standard errors/variance, you can get them with my post estimation command -xtglsr-. Type from within Stata
        Code:
        ssc install xtglsr
        that is looking beautiful!

        Comment


        • #5
          For -xtgls- you definitely need to include the fixed effects manually, so in general it is not a fixed effects estimator, you of course can include fixed effects manually as you showed in your first post.

          I have not used -xtpcse-, but I think it is same with it, you need to include manually the fixed effects.


          Originally posted by lucho sanchez View Post
          Thanks Joro!!
          but beyond that, I have the doubt if the commands - xtgls or -xtpcse are by default for fixed effects, or do I need to adapt them.

          Comment


          • #6
            Originally posted by Joro Kolev View Post
            For -xtgls- you definitely need to include the fixed effects manually, so in general it is not a fixed effects estimator, you of course can include fixed effects manually as you showed in your first post.

            I have not used -xtpcse-, but I think it is same with it, you need to include manually the fixed effects.



            Thanks a lot, is very clear for me.

            Comment

            Working...
            X