Announcement

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

  • How to test the coefficient of two subgroups with fixed effect?

    There are many papers that split the sample into two groups, then do same regression respectively. In general they will test the difference bwteen coefficient of same variable. I know that we can use "suest" to do this, but how can we do the test with several fixed effects? (reg is extremely slow)
    Click image for larger version

Name:	_20230712164654.png
Views:	1
Size:	71.9 KB
ID:	1720146

    Last edited by Barrie Zhu; 12 Jul 2023, 02:51.

  • #2
    Try this.

    reg y x1 x2 , absorb(fe_var)


    suest won't take areg, but the absorb works with reg.

    Comment


    • #3
      Originally posted by George Ford View Post
      Try this.

      reg y x1 x2 , absorb(fe_var)


      suest won't take areg, but the absorb works with reg.
      It works, thank you very much!

      Comment

      Working...
      X