Announcement

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

  • Using -reghdfe- to regress on subsample

    Hi everyone! I would ask a question about -reghdfe-.

    Suppose I would like to regress on a full sample with the command
    reghdfe Y X, absorb(FE)

    Afterwards, I would still use -reghdfe- to regress on the subsample whose condition is R=1.
    How do I regress on the subsample with the condition R=1 using -reghdfe-?

    Thank you very much!


    Shiwei
    12/05/2017

  • #2
    Unless I'm not understanding something, you woud just use "if R==1" as with other Stata commands:

    reghdfe Y X if R==1, absorb(fe)

    Comment


    • #3
      Sergio Correia thanks a lot for your help!

      Comment

      Working...
      X