Announcement

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

  • Suppressing variables in weighted regression output

    I am trying to suppress the output of my fixed effects in a weighted regression

    Without weights this can be done a few ways

    Code:
    sysuse nlsw88, clear
    
    reg wage age i.industry
    
    xtset industry
    xtreg wage age, fe
    reghdfe wage age, absorb(industry)
    But with weights, I get errors using these approaches and have to use the i.

    Is there another way?

    Code:
    gen weights = runiform()
    reg wage age i.industry [iweight=weights]
    xtreg wage age [iweight=weights], fe
    reghdfe wage age [iweight=weights], absorb(industry)

  • #2
    All of the commands allow aweights, so use aweights instead of iweights.

    Comment

    Working...
    X